Semantic HTML dùng thẻ có ý nghĩa mô tả nội dung (<article>, <nav>, <header>, <main>, <aside>) thay vì thẻ chung (<div>, <span>).
Quan trọng vì:
- SEO — search engines hiểu cấu trúc trang tốt hơn.
- Accessibility — screen readers navigate bằng semantic landmarks.
- Maintainability — code tự mô tả, đọc hiểu nhanh hơn.
- Consistency — team dùng cùng conventions
Semantic HTML uses tags that describe the meaning of content (<article>, <nav>, <header>, <main>, <aside>) rather than generic containers (<div>, <span>).
It matters because:
- SEO — search engines better understand page structure.
- Accessibility — screen readers navigate using semantic landmarks.
- Maintainability — self-documenting code is easier to read.
- Consistency — teams share the same conventions