🎯 Learning Objectives

By the end of this class, students will be able to:

  1. Understand what semantic HTML tags are and why they are important.
  2. Differentiate between semantic and non-semantic tags.
  3. Learn the purpose of commonly used semantic tags:
  4. Build a simple, well-structured web page using semantic tags.
  5. Understand how semantic tags improve accessibility and SEO.
  6. Learn non-semantic tags used for layout:

🧩 Part 1: What Are Semantic Tags?

Concept:

Semantic tags describe the meaning of the content inside them. They tell the browser and developers what kind of content it contains.

Why semantic tags matter:

Semantic vs Non-Semantic Tags (Comprehensive)

Tag Type Tag Examples Description / Purpose
Semantic / Structural Tags <header> <nav> <main> <section> <article> <aside> <footer> <figure> <figcaption> <h1>–<h6> <p> <ul> <ol> <li> <table> <thead> <tbody> <tr> <th> <td> <a> <img> Tags that give meaning or structure to the content. Help accessibility, SEO, and readability.
Non-Semantic / Styling Tags <div> <span> <b> <i> <u> <small> <strong> <em> <mark> Generic containers or text-level tags without inherent meaning. Used for layout, grouping, or styling only.

🧩 Part 2: Basic Syntax Examples