Accessibility · Middle · Question 34 of 75
A sticky header covers the focused element after tabbing. What fixes it?
- 1
scroll-padding-topon the scrolling container - 2
outline-offseton every focusable element - 3
position: staticon the page's<body>
Show the answer
Correct answer: scroll-padding-top on the scrolling container
Explanation
WCAG 2.2 requires a focused element not to be entirely hidden by author content. Scroll padding keeps it clear of the header.