<article>, <aside>, <nav>

These are semantic HTML tags used to organize content in a meaningful way. They help define different parts of a webpage and improve structure, readability, and accessibility.

<article> Tag

The <article> tag is used for independent and self-contained content. It can be reused or shared on its own, such as blog posts, news articles, or comments.

Example of Article

<article> <h2>Blog Title</h2> <p>This is a blog post content.</p> </article>

<aside> Tag

The <aside> tag is used for content that is related to the main content but not part of it. It is often used for sidebars, tips, or additional information.

Example of Aside

<aside> <p>This is extra information or a sidebar.</p> </aside>

<nav> Tag

The <nav> tag is used to define a section that contains navigation links. It helps users move between different pages or sections of a website.

Example of Nav

<nav> <a href=”index.html”>Home</a> <a href=”about.html”>About</a> </nav>

Why These Tags are Important

These tags improve the structure of your webpage and make the code easier to understand. They also help search engines and assistive technologies understand the content better.

Summary

The <article> tag is for independent content, the <aside> tag is for related extra content, and the <nav> tag is for navigation links. Together, they create a well-structured and user-friendly webpage.

Home ยป HTML Intermediate > Semantic HTML > , ,