HTML5 Tags

Alright, you’ve been rocking basic HTML, stacking <div> tags like Lego bricks to shape your pages. It works, but it’s kind of a slog, right? Every section looking the same in code, just with different IDs or classes to tell them apart. Then HTML5 rolls in with a whole crew of new tags that actually make sense, and suddenly, building a page feels less like a chore. I remember when I swapped out my old <div> habits for these. It was like someone handed me a map after wandering around lost. Let’s check out some of these shiny new tools and see how they fit!

First, there’s <header>. It’s for the top of your page or section:

<header>
<h1>My Blog</h1>
</header>

No more <div id="header">. This screams “top part” loud and clear. I used it for a fake site banner, and it just clicked.

Then <footer> does the bottom:

<footer>
<p>© 2025 Me</p>
</footer>

Clean, right? I stuck my copyright there once, and it felt so official.

Next up, <section> for big chunks of content:

<section>
<h2>About</h2>
<p>I’m just a coder who loves snacks.</p>
</section>

It’s like a chapter in your page. I tried it for a bio, and it beat nesting <div>s hands down.

There’s also <article> for standalone stuff, like a blog post:

<article>
<h3>Day 1</h3>
<p>Coded all morning!</p>
</article>

I mixed that with <section> once, and my page started feeling like a real site.

Don’t sleep on <nav> for menus:

<nav>
<a href="/home">Home</a>
<a href="/about">About</a>
</nav>

It’s a navigation bar, no fuss. I botched it early by overcomplicating with <ul>, but <nav> alone is plenty. These tags don’t just look good in code, they help browsers and search engines get your layout too.

Next time you’re coding, ditch a <div> for a <header> or <article> and feel the upgrade. It’s like trading a flip-flop for a sneaker!

How-To Guides for HTML

No How-To Guide is available right now.

Keep Learning & Level Up!

Enhance your HTML skills with our in-depth tutorials and interactive quizzes.

Explore HTML Quiz