By the end of this class, students will be able to:
Concept:
Semantic tags describe the meaning of the content inside them. They tell the browser and developers what kind of content it contains.
<div>, <span> → only for layout, no meaning.<header>, <footer>, <article> → describe content purpose.Why semantic tags matter:
| 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. |