0
Explain autofocus attribute
SoloLearn don't teach this attribute well ! So , Could you help me and teach this attribute ? Thanks đ đ .
3 Answers
+ 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.
+ 1
textarea is the element with which it is used so that when you add text to it,it will be focused automatically
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. đđ»