Services Work Learn About Contact
0/8
Lesson 8 of 8

Best Practices

Always use meaningful alt text for images. Use the right heading level — do not skip from <h1> to <h3>. Validate your HTML using the W3C validator. Keep your code indented and readable.

Remember: HTML is about structure, not style. Leave styling to CSS.

HTML
<!-- Good: semantic and accessible -->
<header>
  <nav aria-label="Main">
    <a href="/">Home</a>
  </nav>
</header>

<!-- Bad: using styles inside HTML -->
<p style="color:red;">Don't do this</p>
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed HTML!

You finished all 8 lessons and quizzes. You now know the basics of HTML.