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.


Editor's draft

Status in Chromium


Enabled by default (tracking bug) in:

  • Chrome for desktop release 79
  • Chrome for Android release 79
  • Android WebView release 79

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-06-28