Document Structure and Landmarks — Concept Check
Questions on Document Structure and Landmarks. The element you choose is an API. A div says nothing; a nav, a main and a heading tell the browser, the screen reader and Google what the page is.
Questions in this quiz
8 questions on Document Structure and Landmarks — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A developer uses multiple <div> elements to structure a webpage, believing it doesn't affect accessibility. What is a likely consequence?
- AScreen readers will struggle to navigate the page.
- BThe page will load slower due to extra <div> elements.
- CThe page will not display correctly on mobile devices.
- DSearch engines will rank the page lower automatically.
2.You notice a webpage has two <nav> elements without distinguishing labels. What issue might this cause?
- AScreen readers may not differentiate between the navigation sections.
- BThe page will fail to validate as proper HTML.
- CSearch engines will skip indexing the navigation links.
- DThe browser will ignore one of the <nav> elements.
3.A webpage lacks a <meta name="viewport"> tag. What problem might users face?
- AScreen readers will skip important content.
- BImages will not load on the page.
- CThe page may not render correctly on mobile devices.
- DThe page will not be indexed by search engines.
4.A developer skips from <h1> to <h3> for headings, thinking size is more important than order. What is the impact?
- AThe page will load slower due to incorrect heading order.
- BThe page will render with incorrect font sizes.
- CSearch engines will not index the page properly.
- DScreen readers will struggle to navigate the page by headings.
5.Why is it important to include lang="en" in the <html> tag?
- ATo set the default font for the page.
- BTo ensure search engines index the page correctly.
- CTo inform screen readers of the language for correct pronunciation.
- DTo enable CSS styles specific to English language pages.
6.A developer believes using <section> without a heading is fine as long as it looks good. What is the flaw in this reasoning?
- AThe section will be treated as a <div> by screen readers.
- BThe browser will ignore the section content.
- CThe section will not be styled correctly by default CSS.
- DThe page will not validate as HTML5.
7.A webpage's title is "AiCanCode — Two Sum". What is a potential issue with this title format?
- AThe title may not fit in the browser tab.
- BSearch engines will not index the title properly.
- CThe specific part of the title is not front-loaded.
- DScreen readers may not announce the title correctly.
8.What is the primary function of the <main> element in a webpage?
- ATo hold the primary content unique to the page.
- BTo provide metadata about the page.
- CTo contain the main navigation links.
- DTo display advertisements and related links.