Getting Started with HTML Tags: Part One

CODEHTML7 min

Learning Content

Watch the video and follow along with the written guide

Remember if you know tags you know HTML. With this in mind we are going to cover important HTML tags you will frequently see on the internet.

Understanding the HTML tag: definition, purpose, and use cases.

This is the outermost tag you use to wrap all other tags. You will use it every time you use the HTML format. All websites have HTML even if they use a Javascript Framework for instance. Think of the <html> tag as the safe space where you can work on formatting your website.

Understanding the head and body tag: definition, purpose, and use cases.

Within your safe space (aka <html></html> tags) you will then have two tags the <head> tag and the <body> tag. They work together to provide details about your website. Picture an iceberg where you can only see the ice above the water, but you know there is ice underneath the water as well. That is essentially the same for the <head> and <body> tag. The <body> tag is what you see above the water: your website, your content, the images. Most of the tags you will learn about will be contained with the <body> tags. The <head> tag is what is below the water where you either do not see it or see it indirectly. We call the information in the <head> tag the metadata. This data provides details for Google crawlers such as your meta title and meta description (which you can see in a Google Search listing) as well as other descriptives for your website. The head tag also contains links to external files that work in tandem with HTML to build your website. A proper website will have multiple files and you will at times need to add links that reference these external resources. Just like the <html> tag, you will always have a <head> and <body> tag.

With the fundamental tags in place we can now begin to structure our page (html document). As you are likely noticing, with HTML you have an outermost tag <html> and then slowly work inward as you build a webpage. You can refer to this as the document tree or Document Object Model. The

and <footer> tag are essentially opposites of one another. The <header> tag is for the top of your webpage and the <footer> tag is for the bottom of your website. You will always use them. The <header> tag will typically include your logo and navigation. The <footer> tag will typically include the copyright details and additional links to other parts of the website.

Understanding the nav tag: definition, purpose, and use cases.

The nav tag is used for your navigation on desktop or hamburger menu for mobile and is located within the

tag. You will always use this to specify your navigation menu. Your logo will not be included within the

Code Sandbox

Write, run, and test your code in real-time

Ready to practice?
More Videos
© 2025 MATTHEW SEIWERT