autofocus on input and create placeholder | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

autofocus on input and create placeholder

26th Oct 2016, 11:38 AM
halina
5 Answers
+ 3
the correct answer is :- 1 placeholder 2 autofocus
2nd Aug 2019, 10:02 AM
Vicky Soni
Vicky Soni - avatar
+ 1
<form> <input type="text" name="name" placeholder="Enter your name" autofocus /> </form>
30th Sep 2019, 8:02 AM
Mohamed
Mohamed - avatar
+ 1
the correct answer is :- 1 placeholder 2 autofocus
19th Sep 2021, 9:58 AM
Youssef Pro
Youssef Pro - avatar
0
the placeholder="#" attribute creates a placeholder and adding "autofocus" as an attribute it should autofocus on that input. <input type="text" placeholder="Placeholder Text Goes Here!" autofocus></input>
26th Oct 2016, 3:07 PM
Jakob Bosworth
Jakob Bosworth - avatar
- 2
the correct answer is :- 1 placeholder 2 autofocus
19th Jan 2020, 9:56 AM
Faahim Sadman
Faahim Sadman - avatar