![]() |
VOOZH | about |
The autofocus attribute is used to automatically focus on a <select> element when the webpage loads. It helps users interact with the dropdown menu quickly.
Syntax:
<select autofocus>Example: This example shows the autofocus attribute on a <select> element. The dropdown automatically receives focus when the page loads, allowing users to interact with it without clicking.