top of page

STORIES OF OUR PRACTICE

Tiny Check
Team VKL Design

Team VKL Design

Apr 12, 2023

12

Our practice, HTML5, Website design

Tags:

Marking an element as an ARTICLE, MAIN, HEADER, or ASIDE

Marking elements with HTML tags such as <article>, <main>, <header>, and <aside> serves several purposes in web development. These tags provide semantic meaning and help structure the content within a web page, aiding in accessibility, SEO, and overall code organization.


Here's a breakdown of their individual points:

<article>: The <article> tag is used to define a self-contained and independent piece of content within a document. It represents a complete or standalone composition, such as a blog post, news article, or forum post. Marking content as an <article>, helps search engines identify and understand the main content of the page and can enhance search engine optimization.


<main>: The <main> tag represents the main content area of a document. It should encompass the primary content of the page and exclude repetitive or navigational elements. Using the <main> tag helps provide clarity to assistive technologies, enabling them to navigate directly to the main content and improving accessibility. Additionally, the <main> tag can aid in styling and organization within CSS.


<header>: The <header> tag defines the introductory or navigational section at the beginning of a document or a specific section within it. It typically contains the site or section's logo, site title, navigation menu, or other relevant headings. Marking content as <header> helps identify and differentiate it from the main content, contributing to semantic structure and accessibility.


<aside>: The <aside> tag represents content that is tangentially related or can be considered separate from the main content but still relevant to it. It can include sidebars, related links, pull quotes, or advertisements. By marking content as <aside>, it provides additional context and assists screen readers and other assistive technologies in understanding the purpose and relationship of the content.



Using these semantic HTML tags not only aids in conveying the structure and meaning of the content to assistive technologies but also helps search engines better understand the content of the page, potentially improving search rankings. Furthermore, using these tags promotes cleaner and more organized code, making it easier to maintain and update the website in the long run.

Related stories

bottom of page