Headings and sections Flashcards

1
Q

What is the role of the <header> element?

A

The <header> element is a top-level landmark for the site. When nested, it serves as a header for the specific section, but not a landmark.

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

What is the role of the <nav> element when nested in a site header?

A

The <nav> element nested in a site header serves as the main navigation for the site.

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

What content must be included in a site footer?

A

A site footer must contain copyright, contact info, and privacy & cookie policies.

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

What implicit role does the site <footer> element have?

A

The site <footer> element has the implicit role of contentinfo.

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

What is the purpose of the <main> element?

A

The <main> element identifies the main content of the page and should be used once per page.

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

What is the role of the <aside> element?

A

The <aside> element represents content indirectly related to the main content and has the role of complementary.

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

What defines an <article> element?

A

An <article> element is complete, self-contained, and independently reusable content, such as a blog post nested within <main>.

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

When should a <section> element be used?

A

A <section> element should be used for generic standalone sections, especially when no specific semantic elements apply, and it should contain a heading.

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

What is the significance of <h1> in a document structure?

A

The <h1> element represents the highest level of importance, typically used for the application or main heading in a page.

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

What is the purpose of using <h1> in the <main> element?

A

The <h1> element in <main> is used for the heading of the specific page, not for the whole site.

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