+ 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
4 odpowiedzi
+ 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
0
Actually I just completed the HTML course and but I didnt understand this part that is why I asked
0
I had not completed it way back
In fact like 5-10 mins ago