What is semantic HTML?
B
HTML that uses custom tags
C
HTML that uses meaningful tags to describe content
D
HTML that only uses <div> and <span>
Analysis & Theory
Semantic HTML uses tags that clearly describe their meaning and role in the document.
Which of the following is a semantic HTML5 tag?
Analysis & Theory
`<section>` is a semantic tag used to define a section of content.
What is the purpose of the `<article>` tag in HTML?
B
To define content that makes sense on its own
C
To create a navigation menu
D
To link to another page
Analysis & Theory
`<article>` is used for self-contained content like blog posts or news articles.
Which semantic tag is used for the main content of a webpage?
Analysis & Theory
`<main>` contains the dominant content of the <body> that is unique to that page.
What does the `<aside>` element typically contain?
C
Content related to the main content, like a sidebar
Analysis & Theory
`<aside>` is often used for sidebars or extra content related to the main page.
Which tag is used to group introductory content or a set of navigational links?
Analysis & Theory
`<header>` is used at the beginning of a page or section, often including logos, headings, or navigation.
Which of the following tags defines a footer for a document or section?
Analysis & Theory
`<footer>` contains information about its containing element, like author info, links, or copyright.
Which tag is used to define navigation links in a semantic HTML page?
Analysis & Theory
`<nav>` is used specifically for a block of navigation links.
What is the benefit of using semantic HTML elements?
C
Improved accessibility and SEO
Analysis & Theory
Semantic HTML improves accessibility for screen readers and helps search engines understand content structure.
Which tag would you use to break a page into meaningful content sections?
Analysis & Theory
`<section>` is a semantic tag used to organize content into thematic groups.