0
id
whats the atribute id
3 Answers
+ 4
I'm Sorry do you have a problem?
If yes you can report it to Sololearn via email.
That's not hard right?
"This is proof that sololearn courses suck".
That's totally unnecessary!. Not cool.
+ 2
The id attribute, whatever you call it, specifies a unique id for an HTML element (the value must be unique within the HTML document). The id attribute is most used to point to a style and by JavaScript to manipulate the element with the specific id.
Basically, it is used in js to manipulate html elements however you want.
Same is true of class attribute in CSS. Note: you can use id in both CSS and js.
Hope this helps!