In form element, what does the type attribute do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In form element, what does the type attribute do?

13th Sep 2019, 3:05 PM
Ritheesha Neeli
2 Answers
+ 1
The form tag has 2 main attributes: method and action. The "type" attribute is for the inputs inside a form
13th Sep 2019, 5:13 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
+ 2
in form, type attribute is used in <input> elements eg. <input type="text" /> https://www.w3schools.com/tags/att_type.asp
13th Sep 2019, 4:14 PM
Jaydeep Khatri
Jaydeep Khatri - avatar