Semantic HTML Flashcards

1
Q

What does “semantic” refer to in web development?

A

Semantic refers to meaning.

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

What is Semantic HTML?

A

Semantic HTML structures content based on the meaning of each element, helping automated tools like screen readers interpret the markup.

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

What are the three main components built during browser parsing?

A

DOM (Document Object Model)
CSSOM (CSS Object Model)
Accessibility Tree

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

What is the purpose of the Accessibility Tree?

A

The Accessibility Tree is used by assistive devices via the Accessibility Object Model (AOM).

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

What is the role of <header> in semantic HTML?

A

The role of <header> is banner.

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

What is the role of <footer> in semantic HTML?

A

The role of <footer> is contentInfo.

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

What is the role of <nav> in semantic HTML?

A

The <nav> element is used for navigation but does not have an implicit role.

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

What is the purpose of the role attribute in HTML?

A

The role attribute describes the role of an element in the document.

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

Which HTML elements have implicit roles?

A
  • Buttons
  • Links
  • Ranges
  • Checkboxes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What can be assigned roles using the role attribute?

A

Non-semantic elements can be assigned roles using the role attribute.

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

What is the key question to ask when choosing a semantic HTML element?

A

Which element best represents the function of this section of markup?

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