0

Explain autofocus attribute

SoloLearn don't teach this attribute well ! So , Could you help me and teach this attribute ? Thanks 🎃 🎉 .

3rd Sep 2020, 4:53 PM
Deleted Account
Deleted Account - avatar
3 odpowiedzi
+ 2
It is mainly used for input tag If autofocus is true for input tag it will focused as soon as page loaded . By default is focused when we click on it.
3rd Sep 2020, 5:00 PM
Divya Mohan
Divya Mohan - avatar
+ 1
textarea is the element with which it is used so that when you add text to it,it will be focused automatically
3rd Sep 2020, 5:00 PM
shubham kumar
shubham kumar - avatar
0
Simply, In the 'form' we see the plain boxes, right? When u don't use autofocus u have to click on that empty box to type the txt. When u use autofocus, u don't have to click on the box, it'll automatically blink the cursor in that empty box, u have to just type the txt. Hope u got it. 👍🏻
11th Sep 2020, 8:30 AM
Bhaskar
Bhaskar - avatar