+ 1

What is the use of id attribute of input in form element in HTML 5?How does it work? Also the name and type and value attribute

29th Oct 2020, 2:48 AM
Aryan
4 Respuestas
+ 2
You can style the input box with id attribute in css and can access entered data in js by id . name gives the name of input . without name form data won't be submitted . it is (name) also used in php . type defines the type of the input box . some mostly used types are text color password email range etc . value sets the default value of input box
29th Oct 2020, 3:11 AM
TOLUENE
TOLUENE - avatar
0
Actually I just completed the HTML course and but I didnt understand this part that is why I asked
29th Oct 2020, 3:35 AM
Aryan
0
I had not completed it way back In fact like 5-10 mins ago
29th Oct 2020, 3:35 AM
Aryan