[autofocus]

Term side of the Card
Topic: Global Attributes
Unit title: [autofocus]
Categories: Attribute
Explanation side of the Card

Explanation: The attribute that automatically focuses an element, such as a form input, when the page loads. It's useful for improving user experience by guiding them to the most important or first interactive element on the page.

Browser compatibility:
  • The chrome browser supports this feature starting from version 79
  • The edge browser supports this feature starting from version 79
  • The firefox browser supports this feature starting from version 110
  • The safari browser supports this feature starting from version 15.4
Availability: