When following an in-page anchor link to a non-focusable element (like a plain div), browsers move focus to the body rather than the target element. However, many browsers implement a 'sequential focus navigation starting point' — a spec-defined concept that shifts the TAB navigation origin to the linked element even when focus itself doesn't move there. This means pressing TAB after clicking such a link will advance focus from the linked element's position in the DOM, not from wherever focus visually landed. The feature works in Chrome, Firefox, and Opera but not in IE11 or Edge (at time of writing).
Table of contents
Finding out which element has focus #heading-1What happens when you follow an in page link #heading-2The focus navigation starting point #heading-3Further reading #heading-41 Impression