Whether you’re just now learning or code, or have been building web apps for years, you’ve probably noticed that there are things you use more often that others. In this short article, we’ll go through 10 basic HTML tags that you’ll actually use often in your projects.
This html tag is used to define the content and information (metadata) of your website.
This tag can be used to contain elements like your navigation bar or hero section, anything at the top of your webpage.
Probably the most common tag in web development, this html tag is what holds your content. Think of a div like a room with items inside. Just as multiple rooms create a home, multiple divs, with items inside, create a website.
The a tag in html is what is used to create a link to another section of the page, another webpage on the same website, or another website altogether.
Pretty self explanatory. This basic html tag is used for adding images to your webpage.
The heading tag is also another basic html tag that is used to create headings on webpages. The headings available are <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, which all appear in different sizes. But of course, you can edit those sizes in CSS.
This is called the p, or paragraph tag, which is used to create paragraphs, like the one you’re reading now.
This basic html tag is called a break tag. It is used when you want to create a new line
like this. It helps with spacing, and is very helpful.
This tag is where you’ll put all your code that will appear on the webpage and is a basic, but very important html tag.
The span tag is good for when you want elements to stand on their own, or you want to experiment with changing individual text colors, etc. It’s a basic, but very good html tag to use.
So there you have it! A list of 10 basic html tags that you’ll actually use frequently on your projects!