Place autofocus in the text box when a page gets loaded without JavaScript support in HTML?

The autofocus attribute is a boolean attribute. When present, it specifies that an element should automatically get focus when the page loads. An example is given below


   
      
         First Name:
         Last Name:
               
   
Updated on: 2020-06-04T08:25:53+05:30

192 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements