Question: Select all that apply. Which elements should receive focus as you tab through a web page?
- button elements
- anchor elements
- h1 elements
- input elements
Explanation
HubSpot’s accessibility guidance treats links, buttons, and form controls as interactive elements that must work well with keyboard navigation. As a user tabs through a page, focus should move to controls that can be activated, followed, or edited. HubSpot also recommends styling :focus so the currently selected interactive element is visible during keyboard use. An h1 supports page structure and meaning, but it is not a standard tabbable element. HubSpot Developers
Why the other options are incorrect
h1 elements are structural headings, so they communicate document hierarchy instead of acting as interactive controls in the tab order. HubSpot Developers
Source for verification
https://developers.hubspot.com/docs/cms/best-practices/improve-existing-sites/accessibility
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "HubSpot CMS for Developers II" page.
