Afrikaans
Akan
Albanian
Amharic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
- Now that we know how to make a link,
and how to structure our URLs,
let's look at some of the most common patterns
for creating a menu or a navigation bar.
Let's say we want to make a main menu bar for our website.
There are four links here.
The words home, people, prices and contact.
We've wrapped each of them in an a element
with the correct URL,
and then I've wrapped each link in a li for list item.
This is a list of links.
The whole list is wrapped in a ul
because the order of the links isn't that important.
It's an unordered list,
and now, I'm going to wrap the whole thing in a nav element.
The nav element is for marking up navigation.
It tells the browser which sets of links
are part of the site navigation.
We don't use it all the time,
just for major blocks of navigational links.
You could see the results on the right.
It looks like a nice main menu bar.
Now, of course, it doesn't look this way
because of the HTML,
I've styled it to look like a menu bar.
Here's what it looks like without the CSS.
It's a list.
Now I want screen readers and other assistive devices
to also know that this is the main menu for the site,
so I'm going to add a few attributes
to convey the purpose of this navigation.
We can add role equals navigation to the nav element.
It's an aria role that is perfect
for marking the main navigation of the page.
It adds the extra kind of importance that's conveyed
to other people visually through graphic design.
I'm also going to add an aria label of main menu.
That provides a label that can be read aloud
by the screen reader to tell people what this is
and to give them more context.
Main menu are the words that I've chosen.
We could say primary navigation or whatever we want.
This isn't the only correct way to markup main navigation,
there are many variations that work just as well,
perhaps better in certain circumstances.
Let's look at another kind of navigational menu
and how we might mark it up.
Here's a breadcrumb trail.
I've also taken these links and made them into a list.
Only this time, I made an ordered list
because the order in a breadcrumb matters.
I'm also wrapping this in a nav element
since this is a navigational aide to get around.
I'm not going to put a role of navigation on it, however.
It's just not important enough.
I think I will add an aria label of breadcrumb.
That will provide a little more context
than if a numbered list of links were read aloud.
Let's look at one more set of links.
How about something like those links
that can be found on the bottom of a page in the footer,
the kind of links that aren't really part of a navigation
or getting around the site.
I'm just marking up each link here as a link,
and wrapping them in a footer element, that's it.
I don't even want to use a nav element
or an unordered list,
it's just two phrases linking to more content.
We have a lot of options
when we start combining HTML elements together.
By thinking about the many actions and how they combine
to layer semantic meaning into our content,
we can start to get it the right choices for our projects.
There's not one right way.
The only for sure is that it depends.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.