Landmark Roles

Back to Overview
00:00 --> 00:09
roles next. Landmark roles are important because they basically give you an overview of the site.

00:09 --> 00:13
If you are a screen reader user, you can get a list of all the landmark roles.

00:15 --> 00:23
And these are the landmark roles that exist. It's only like a handful and a bit. So there's

00:23 --> 00:29
banner, complimentary content info form, main navigation, region and search. And you would say

00:29 --> 00:37
like huh didn't we talk about those in page structure yes we we actually we did um we did

00:37 --> 00:47
talk about the html equivalence um and this is like an important concept because not uh you in

00:47 --> 00:57
general don't want to talk aria directly as i have said um and a lot of things are actually

00:57 --> 01:05
built into HTML that are then reflected in ARIA. And let's look at the page structure stuff.

01:06 --> 01:13
So if you have a banner landmark role, you can just use the header element.

01:13 --> 01:22
And that is equivalent because the header already has built in the banner role. So

01:22 --> 01:31
So the browser knows that this is what it has to give to the assistive technology, to the API.

01:31 --> 01:34
The same goes for the content info role.

01:34 --> 01:35
You can just use a footer.

01:37 --> 01:42
Main has a main element equivalent, and you can use those only once.

01:43 --> 01:45
Because that's how it's specified.

01:45 --> 01:49
It makes only sense to have one main content.

01:49 --> 01:55
If everything is a main content, nothing is a main content. And then we have complementary.

01:55 --> 02:04
Complementary is one that can be used as many times as you want. And you can use the HTML aside

02:04 --> 02:16
element to achieve the same semantics basically. And there are a couple more. Navigation is

02:16 --> 02:27
reflected in the nav element, so you can use an infinite number of nav elements. Forms, you can use

02:27 --> 02:33
an unlimited number of those. They use the form element. Search is a form with a role search. You

02:33 --> 02:39
can also use, technically you can use other elements with the role search, but in general

02:39 --> 02:44
you have a search form, so just put it on the form. And then region with a section.

02:44 --> 02:54
is every section is a region and if you put an accessible name on it for example using aria

02:54 --> 03:00
label or aria labeled by then it becomes a landmark it's not a landmark technically if

03:00 --> 03:07
it's only just a section element because people started using sections for everything and that's

03:07 --> 03:14
not a good thing because then, as I've said with the main, you then have landmarks everywhere

03:14 --> 03:19
and you can't pick out what really sticks out there.

03:20 --> 03:32
So these are the landmark roles, just these eight, and they have direct HTML equivalents

03:32 --> 03:33
that you should use.

03:34 --> 03:35
Check off.