Screen reader users can jump between the main parts of a web page using landmarks. A semantic HTML layout gives those regions roles that the browser can expose to assistive technology.
Where an element sits affects the landmark it creates. A page-level <header> introduces the site and a page-level <footer> holds information such as contact details. Inside an article, those elements describe that section instead.
The layout works in a local HTML file without a web server. Desktop Chrome's accessibility tree shows the roles the browser assigns, even before any CSS is added to style the page.
Steps to create a semantic HTML layout:
- Save
layout.htmlin the test folder. - Open the saved
layout.htmlin desktop Chrome.Chrome shows a File badge beside the address. The address shows where you saved
layout.html.
- Open Chrome DevTools with
F12.On a Mac, the shortcut is
Command+Option+I. If DevTools opens in another panel, select Elements first.
- Open the tab overflow menu at the end of the Styles tab row if Accessibility is hidden.

- Select Accessibility in the Elements sidebar.

- Turn on Show accessibility tree.

- Confirm that the accessibility tree shows
bannerwithnavigationinside it, followed bymainandcontentinfo.The tree's top row is Community garden. The
mainbranch contains the Opening hours heading. If a role is missing, check that the matching element is present in the saved file and reload the page before checking again.