Adds the 'autofocus' attribute to any focusable HTML or SVG element.


'Autofocus' was previously supported for a limited number of HTML elements, and there were elements which could receive focus but didn't support the 'autofocus' attribute. This feature fixes the inconsistencies.


Specification link

Unknown standards status - check spec link for status

Status in Chromium


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.


Search tags

autofocus, focus,

Last updated on 2021-12-13