# article, section, aside & address

> Four sectioning elements each carry a specific semantic contract. Choosing the right one is not about visual layout but about what the content means: could it stand alone, is it a named thematic group, is it tangential, or is it the author's contact information?

Subject: HTML | Lesson 33 of 42 | 6 min read
Interactive lesson: https://codewithanimation.in/html/article-section-aside-address
Previous: [Page Landmarks](https://codewithanimation.in/html/page-landmarks.md) | Next: [Native-First & ARIA](https://codewithanimation.in/html/native-first-and-aria.md)

## What they are

`<article>` marks content that is self-contained and independently distributable. A blog post, a news item, a product card, a comment, or a forum post are all articles because removing them from the page and publishing them elsewhere would still make complete sense. `<article>` has implicit `role="article"`. Articles can be nested: a list of comments inside a post is a natural case where each comment is an `<article>` inside the parent `<article>`.

`<section>` marks a thematic grouping of content with a heading. It is not a generic wrapper. It is also NOT automatically a landmark: without an accessible name (`aria-label` or `aria-labelledby`), the browser assigns it `role="generic"`, making it invisible to landmark navigation. With a name it becomes `role="region"`. The rule: if you cannot give it a meaningful name, ask whether `<article>`, `<aside>`, or even `<div>` is a better fit.

`<aside>` marks content that is tangentially related to the content around it. The key word is tangential: the main content would still make sense if the aside were removed. Sidebars, pull quotes, related links, and author bios are asides. `<aside>` has `role="complementary"`. At the page level it is a landmark; inside an `<article>` it is tangential to that article specifically.

`<address>` marks contact information for the nearest `<article>` or `<body>` ancestor. That means the author or publisher's email, URL, phone, or social handle. It is not a general-purpose element for any postal address (like a business location on a contact page). `<address>` has `role="group"`.

## Why it matters

Screen readers, search engines, and feed readers all consume the semantic signal each element sends. An RSS reader extracts `<article>` elements to build a feed. A search engine weights content inside `<article>` as a standalone piece. A screen reader announces `<aside>` as a complementary landmark, giving the user the choice to skip it. Using `<div>` instead of any of these loses all of those signals silently.

For accessibility, the landmark roles are the practical benefit: `<aside>` at the page level gives AT users a complementary landmark they can jump to or skip. Named `<section>` elements (with `aria-label`) create `region` landmarks for distinct areas of a long page, such as a search results section or a featured-articles section. Getting these right adds navigable structure without any extra ARIA.

## How to choose

Ask three questions in order. First: could this content be extracted and published somewhere else and still make complete sense? If yes, use `<article>`. Second: is this content tangential to the surrounding content and non-essential to understanding it? If yes, use `<aside>`. Third: is this a distinct thematic group with a meaningful name you can give it? If yes, use `<section aria-label="...">`. For everything else, use `<div>`.

Place `<address>` inside the `<article>` it belongs to, typically at the bottom, to link the contact info to that article's author. When placed inside `<footer>` at the page level, it refers to the whole document's owner. Never wrap a business's postal address in `<address>` unless that address IS the author's contact information for the piece.

## Common mistake: Using <address> for any physical address

A contact page with a business's street address is tempting to mark up as `<address>`. It is wrong unless the address is for the author or publisher of the document. For a generic mailing address (such as a company headquarters in a store locator), use a `<p>` with `<br>` line breaks, or a `<dl>` with name-value pairs. The `<address>` element is reserved for the contact information of whoever wrote or owns the nearest `<article>` or the whole page.

## Tip: The independence test for <article>

Before marking something `<article>`, ask: if this were dropped into an RSS feed or shared as a standalone link, would it still make sense with no surrounding context? A blog post: yes. A paragraph inside a post: no. A product card that links to its own page: yes. A navigation menu: no. The independence test keeps `<article>` meaningful and avoids turning every card component into a semantic article.

## Try it: Try it

Four sectioning elements reveal with their role and use case so you can see the semantic contract each one carries.

The animation is on the lesson page and is not part of this text version: https://codewithanimation.in/html/article-section-aside-address

## Check yourself

### Question 1

Which of these is the best candidate for <article>?

- A. A comment posted by a user on a news story
- B. A paragraph of body text inside a blog post
- C. A site-wide navigation menu

Correct answer: A

A user comment is self-contained: it has an author, a date, and a viewpoint that makes sense independently. That is the independence test for `<article>`.

- Why not B: A paragraph is part of the article, not a self-contained piece. Wrapping each paragraph in <article> would make every paragraph independently distributable, which is not the intent.
- Why not C: <nav> is the correct element for a navigation block. A navigation menu is not self-contained content that could be syndicated independently.

### Question 2

A <section> element has no aria-label and no aria-labelledby. What is its ARIA role?

- A. generic: it is not a landmark
- B. region: <section> always creates a region landmark
- C. document: it marks a document subdivision

Correct answer: A

An unnamed `<section>` has `role="generic"` and is invisible to AT landmark navigation. Add `aria-label` to promote it to a `region` landmark.

- Why not B: <section> only maps to role="region" when it has an accessible name. Without one the browser assigns role="generic", the same as a <div>, and it does not appear in landmark navigation.
- Why not C: There is no automatic role="document" assignment for <section>. The element maps to region (when named) or generic (when unnamed).

### Question 3

A contact page lists the company's street address. Should it be wrapped in <address>?

- A. No. <address> is only for the contact info of the document or article's author
- B. Yes. <address> is the correct element for any physical address
- C. Yes, but only if it includes a zip code

Correct answer: A

`<address>` marks contact information for the author or publisher of the nearest `<article>` or the whole page. A company's street address on a contact page is not author contact info: use `<p>` or `<dl>` instead.

- Why not B: <address> is specifically for the contact information of the nearest <article> or <body> ancestor, not for arbitrary postal addresses. A business location belongs in a <p> or <dl>.
- Why not C: The content of the address is irrelevant to whether <address> is appropriate. The question is: is this the contact info for the document or article author? A business location is not.

## Remember this

- `<article>` passes the independence test: it should make complete sense if extracted and published elsewhere.
- `<section>` without `aria-label` or `aria-labelledby` has `role="generic"` and is not a landmark.
- `<aside>` content is tangential: the main content still makes sense without it.
- `<address>` is for the contact info of the document or article's author, not for arbitrary postal addresses.
