Article Title
This is an <article> element - independent, self-contained content.
Articles can be distributed independently from the rest of the site.
Understanding semantic elements for better structure and accessibility
Semantic elements clearly describe their meaning in a human- and machine-readable way. They help search engines understand your content and improve accessibility for screen readers.
Below is a complete example of semantic HTML5 layout elements in action:
This is the <header> element - contains introductory content
This is the <main> element containing the primary content.
This is an <article> element - independent, self-contained content.
Articles can be distributed independently from the rest of the site.
Multiple articles can exist within a section, each representing a distinct piece of content.
<!-- Complete Semantic HTML5 Layout -->
<header>
<h1>Website Header</h1>
<p>Introductory content</p>
</header>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
</ul>
</nav>
<main>
<section>
<h2>Main Content Section</h2>
<article>
<h3>Article Title</h3>
<p>Article content...</p>
</article>
</section>
<aside>
<h3>Sidebar</h3>
<p>Related content...</p>
</aside>
</main>
<footer>
<p>© 2024 Website Footer</p>
</footer>Contains introductory content or navigational aids. Usually includes the site name/logo and main navigation.
Represents a section with navigation links. Should contain links to other pages or sections within the page.
The main content area of the document. Should be unique to the document and not repeated across pages.
A thematic grouping of content, typically with a heading. Represents a distinct section of a document.
Independent, self-contained content that could be distributed separately. Examples: blog posts, news articles.
Content that is related to the main content but separate from it. Often used for sidebars, callouts, or related links.
Contains footer information for its nearest sectioning element. Typically includes copyright, contact info, links.