HTML autofocus attribute
HTML autofocus attribute automatically focuses the cursor on the specific input field after the page is loaded.
autofocus attribute allows the user to start typing directly in the respective input area.
In the above example, the input control of email is focused after the page is loaded.
Attribute values
All possible values of autofocus attributeautofocus is a boolean attribute. A boolean attribute has only two states.