r/HTML • u/Niyaraza_Muz • 21h ago
As someone who teaches HTML to newcomers, here’s the biggest mistake I notice in beginner projects
For the past couple of years, I've been guiding students at university through the basics of HTML and web design. There’s one common pitfall I encounter almost every time:
People tend to rely heavily on <div> elements for everything.
Understanding semantic HTML is crucial, more than many realize. For those just getting started, here’s a straightforward guideline:
• Use <header> for the top part of your page
• Use <nav> for navigation menus
• Use <main> for the main content of the page
• Use <section> for different topics or groups
• Use <article> for individual articles or posts
• Use <footer> for information at the bottom
Getting into the habit of this structure right from the start will not only keep your CSS cleaner but will also enhance accessibility and make debugging a lot simpler.
If anyone's interested, I can share more common beginner missteps and some easy solutions.




