What is the using If the attribute I'd="" ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the using If the attribute I'd="" ??

I can't understand it so please help me And if you can, try to give me some exemples here

20th Dec 2019, 11:00 AM
Feres Daghrour
Feres Daghrour - avatar
1 Answer
+ 1
you can use #name to access the element with id="name" from CSS. it's basically the same as a class, except you're supposed to use each id only for one single element, while classes can be used infinitely. you also need to set an id when creating foms in order to bind <label>s with <input>s. last but not least, JavaScript functionality relies heavily on assigning unique id tags. this is all explained in the html/css tutorials too, so you should check them out.
20th Dec 2019, 10:53 PM
grdr