Labelled Sections

Headline without link to section

This is just a section with a headline and content.

ARIA Label section

This section uses aria-label to name the section.

Adding aria-label exposes this section to assistive technology. But beware aria-label can not be auto-translated.

Labelled by section

This section uses aria-labelledby to link the headline to the section.

Using aria-labelledby exposes the name of the section to assistive technology.

Section with role="region"

This section uses aria-label to provide a name and additionally has role="region" set.

Div with role region

This uses uses role="region" and aria-labelledby to link the headline to the div.

Adding role="region" lets assitive technology add the div to its element tree.

Div with role="region" but no label

This uses uses role="region" and aria-labelledby to link the headline to the div.

Since it is missing any kind of label, it is not discoverable by assistive technology.