Select all that apply.Which of the following are HTML semantic elements?
Choose an answer
Tap an option to check your answer.
Correct answer: main, header, nav.
Why this is the answer
The selected answers are main,header,andnav.Semantic HTML elements are tags that carry meaning about the content they contain,aiding both developers and assist ive technologies in understanding the structure and purpose of a webpage. The<main>element represents the main content of the document or application,providing away to identify the primary content area,which is crucial for screen readers and other assist ive technologies to navigate effectively.Similarly,theelement <header> typically contains introductory content or navigational aids for a section or the entire document,helping users understand the purpose and context of the content that follows.The<nav>element is used to define a set of navigation links,indicating to both users and assist ive technologies that the enclosed links are part of the site's navigation system.By using semantic elements like main,header,andnav,developers can create webpages that are more accessible,maintainable,and understandable,improving the overall user experience for all visitors,including those who rely on assist ive technologies.Conversely,the<span>elementisa generic container that does not convey any semantic meaning about its content,making it less useful for conveying the structure and purpose of a webpage to both developers and assist ive technologies.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed