HTML5 Semantic Elements Flashcards

1
Q

Why are their new layout elements?

A

Indicate the role different parts of the layout play.

Assists with making content more usable for different devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How are header and footer elects to be used?

A

They can be used for main header and footer of a page

Also used for header and footer of a section or article

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is the navigation tag to be used?

A

Use for primary navigation - not for sub navigation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is the article tag to be used

A

Used for marking up major content elements e.g. a blogpost, essay, article.

Content that standalone and could be syndicated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is the aside element to be used

A

If inside an article, it’s related content not essential to the article

If outside an article its content related to the entire page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the section element

A

It groups related content together

It would include headeings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What role does figure element have

A

Can be used to mark up any visual accompaniment to an article e.g. video, diagram

must include a caption

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What if someone is using an older browser that doesn’t recognise new html5 elements?

A

You need to specify a rule to set all elements as block level (Other wise they’ll be treated as incline

<code>
header, footer, article, section, aside {
display: block;
}
</code>

You can use html5Shiv to create elements using javascript write as a conditional comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly