HTML Tutorial · Chapter 9 of 9
HTML Semantic Tags
Use meaningful page sections.
header, nav, main, section, article, and footer describe page parts more clearly than only div.
Semantic tags help accessibility and classroom project structure.
Semantic sample
Try it Yourself »
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Semantic HTML</title>
</head>
<body>
<header>
<h1>CoderKiosk</h1>
<nav>
<a href="#">Home</a>
<a href="#">Lessons</a>
</nav>
</header>
<main>
<section>
<h2>Lesson</h2>
<p>Semantic tags make structure clearer.</p>
</section>
</main>
<footer>
<p>HTML Tutorial</p>
</footer>
</body>
</html>
Classroom Tips
- Prefer semantic tags when they fit.
- Continue to CSS Tutorial for styling.