0

Does "<input type="">" and "<input id=""> means thesame thing??

24th Mar 2019, 6:26 AM
Louis
Louis - avatar
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
24th Mar 2019, 6:50 AM
Jingga Sona
Jingga Sona - avatar
+ 1
id attribute is used to access that element by css or JavaScript, it will not affect the element.
24th Mar 2019, 8:04 AM
Akshay Karande