Headings and sections Flashcards
What is the role of the <header>
element?
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.
What is the role of the <nav>
element when nested in a site header?
The <nav>
element nested in a site header serves as the main navigation for the site.
What content must be included in a site footer?
A site footer must contain copyright, contact info, and privacy & cookie policies.
What implicit role does the site <footer>
element have?
The site <footer>
element has the implicit role of contentinfo
.
What is the purpose of the <main>
element?
The <main>
element identifies the main content of the page and should be used once per page.
What is the role of the <aside>
element?
The <aside>
element represents content indirectly related to the main content and has the role of complementary
.
What defines an <article>
element?
An <article>
element is complete, self-contained, and independently reusable content, such as a blog post nested within <main>
.
When should a <section>
element be used?
A <section>
element should be used for generic standalone sections, especially when no specific semantic elements apply, and it should contain a heading.
What is the significance of <h1>
in a document structure?
The <h1>
element represents the highest level of importance, typically used for the application or main heading in a page.
What is the purpose of using <h1>
in the <main>
element?
The <h1>
element in <main>
is used for the heading of the specific page, not for the whole site.