HTML Semantic Elements
- HTML semantic elements are special elements introduced in HTML5 that provide meaningful structure to web pages.
Here are some commonly used HTML semantic elements:
- <header> – Container for a group of introductory content at the top of a section.
- <nav> – Used for the navigation section.
- <main> – Specifies the main content of a document and it is unique.
- <table> – Used to create tables.
- <form> – Used to create forms.
- <article> – Defines independent, self-contained content. Used for blogs, news articles, etc.
- <section> – Defines a standalone section of content within a document.
- <aside> – Used for sidebar content.
- <footer> – Used to create a footer.
🚀 Try it yourself! Click the button below to run the code and see the output in action.
HTML Code
Output
Important Note: Want to download the full HTML course as a PDF? Click here to save it locally!