Cant understand what is id | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Cant understand what is id

19th Mar 2019, 5:10 PM
Kalyan Reddy
Kalyan Reddy - avatar
3 Answers
+ 5
id attribute is used to give unique id to an element. It is usful when you want to access the element by JavaScript
19th Mar 2019, 5:14 PM
VEDANG
VEDANG - avatar
+ 6
Ole113 Javascript and CSS both can access the element with id
20th Mar 2019, 7:07 AM
VEDANG
VEDANG - avatar
+ 4
Javascript or css VEDANG
19th Mar 2019, 8:23 PM
Ole113
Ole113 - avatar