Don't understand..... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Don't understand.....

<form> <label for="e-mail">Your e-mail address: </label> <input type="text" name="email" autofocus /> </form> what does this autofocus do ?

9th Mar 2018, 4:06 AM
Serious Sam
Serious Sam - avatar
2 Answers
+ 9
Autofocus means, an <input> element should automatically get focus when the page loads. In other words without clicking mouse or button in that particular input field you'll be prompt to input something. Plz run the code and your doubt will be clear.
9th Mar 2018, 4:16 AM
Pravin Pandey
Pravin Pandey - avatar
+ 1
actually i do my coding on other software(for comfortable) not on this app.....So the coding is 0% in my profile..... it's impossible as i am already completing html5 you know.......
9th Mar 2018, 8:11 AM
Serious Sam
Serious Sam - avatar