0
Does "<input type="">" and "<input id=""> means thesame thing??
2 ответов
+ 8
No
Id = The ID of the input
Type = The Type of the input, can be number, text, a button, a file, etc
example:
<input type="number"> => We can only input number
<input id="number"> => No Affect To The Input
+ 1
id attribute is used to access that element by css or JavaScript, it will not affect the element.