Mid JavaScript

What are semantic HTML elements? Give examples.

Semantic elements clearly describe their purpose in the document structure.

Examples include: <header>, <footer>, <article>, <nav>, <section>.

Example:

<article>

<h2>Breaking News</h2>

<p>New tech trends are emerging every day.</p>

</article>

Key Takeaway:

Semantic tags improve SEO and accessibility.

More from JavaScript Tutorial

All questions for this course