autofocus एक बूलियन विशेषता है। जब मौजूद होती है, तो यह निर्दिष्ट करती है कि पेज लोड होने पर एक <input> एलिमेंट को स्वचालित रूप से फोकस मिलना चाहिए।
उदाहरण
<!DOCTYPE html>
<html>
<body>
<form action="/new.php">
First Name: <input type="text" name="fname" autofocus><br>
Last Name: <input type="text" name="lname"><br>
<input type="submit">
</form>
</body>
</html>
इस उदाहरण में, "First Name" फील्ड पेज लोड होते ही फोकस प्राप्त कर लेगा।