Sematic HTML Flashcards
What is the header used for?
Introductory content containing < h1 > to < h6 > heading or navigational links
What is < nav > used for
Navigational links, it can go inside the header
What is the < main > tag used for?
The bulk of the content
What is the < footer > used for?
Information such as contact information, terms of use, etc.
What is the < section > element for?
To define parts of the code that relate to each other, a lot like the < div > element
What is the < article > element used for?
For defining where the article is
What is the < aside > element for
For information such as end notes, comments, pullout quotes, etc.
What is the < figure > element for?
For images
What is the < figcaption > for?
Photo captions, it goes inside the figure element
How do you add audio to a webpage?
< audio > < source src=”IAmAnAudioFile.mp3” type=”audio/mp3 > < / audio >
How do you add controls to an audio file
Add “controls” attribute to the audio element