HTML 5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

HTML 5

Designate the username field as required, and focus on the name field when the page loads: <form autocomplete="off"> <input name="name" type="text" /> <br /> <input name="username" type="text" /> </form>

14th Feb 2020, 10:20 AM
Adebowale Sodiq
Adebowale Sodiq - avatar
1 Answer
+ 2
//Solution <form autocomplete="off"> <input name="name" type="text" autofocus/> <br /> <input name="username" type="text" reuired/> </form>
14th Feb 2020, 10:41 AM
Sudarshan Rai
Sudarshan Rai - avatar