+ 2

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>

25th Nov 2016, 2:04 AM
anjanel macalaguim
20 ответов
+ 22
<form autocomplete="off"> <input name="name" type="text" autofocus /> <br /> <input name="username" type="text" required /> </form>
16th May 2017, 12:39 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
+ 2
<form autocomplete="off"> <input name="name" type="text" autofocus /> <br /> <input name="username" type="text" required /> </form>
2nd Oct 2018, 11:24 AM
Pukkalla Lakshmi
Pukkalla Lakshmi - avatar
+ 2
the correct answer is :- 1 autofocus 2 required
2nd Aug 2019, 10:05 AM
Vicky Soni
Vicky Soni - avatar
+ 1
thank you
17th Jul 2017, 10:32 AM
abdullahi
+ 1
<form autocomplete="off"> <input name="name" type="text" autofocus/> <br /> <input name="username" type="text" required />
23rd Feb 2021, 7:37 AM
Shaxzod Ergashov
Shaxzod Ergashov - avatar
0
For autofocus on page load use the attribut : autofocus For required : required, but don't forget about html doctype, in first line : <!DOCTYPE html>
27th Nov 2016, 2:31 PM
alexyork
alexyork - avatar
0
username required
28th Mar 2018, 4:08 PM
MUSA NAFIU SHEHU
0
coma nema pojma
19th Apr 2018, 8:21 AM
Mrtvi Retard
Mrtvi Retard - avatar
0
autofocus required
25th Jul 2018, 4:30 PM
AYYASAMY
AYYASAMY - avatar
0
Thanks so much am humbled
19th Jul 2019, 10:20 AM
Aminga Ezra
0
<form autocomplete="off"> <input name="name" type="text" ,.................. /> <br /> <input name="username" type="text" required /> </form>
26th Jul 2019, 9:30 AM
Bourkaib Ali
0
<form autocomplete="off"> <input name="name" type="text" autofocus /> <br /> <input name="username" type="text" required /> </form>
30th Sep 2019, 8:03 AM
Mohamed
Mohamed - avatar
0
the new answer is <form autocomplete="off"> <input name="name" type="text" autofocus /> <br /> <input name="username" type="text" required /> </form>
19th Jan 2020, 9:59 AM
Faahim Sadman
Faahim Sadman - avatar
0
autofocus required is currect answer
28th May 2020, 4:20 PM
novaking
novaking - avatar
0
1. autofocus 2. required
3rd Jun 2020, 9:39 AM
revita nisya afifah
0
autofocus required
31st May 2021, 2:01 PM
Charles Boamah
Charles Boamah - avatar
0
autofocus required
1st Jul 2021, 5:27 PM
Kaniz Hossain
Kaniz Hossain - avatar
0
Ans---> 👇👇 autofocus required
1st Sep 2021, 3:11 PM
MD Nur Ahmad
MD Nur Ahmad - avatar
0
<form autocomplete="off"> <input name="name" type="text" autofocus /> <br /> <input name="username" type="text" required /> </form>
26th Oct 2021, 11:28 PM
Maha Mekawy
0
Forms with Required Fields 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>
7th Mar 2023, 3:17 PM
Ismail Salisu nagoma 10
Ismail Salisu nagoma 10 - avatar