What is the difference of id attribute and class attribute in CSS html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What is the difference of id attribute and class attribute in CSS html

The difference...

19th Dec 2020, 12:21 PM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
1 Answer
+ 4
Jonathan Jundarino Hello, an ID is only used to identify one single element in our HTML and Id is unique However, a classcan be used to identify more than one HTML element. For more info visit this link, https://www.w3schools.com/html/tryit.asp?filename=tryhtml_id_class Use search bar this types of questions already available in sololearn https://www.sololearn.com/discuss/303457/?ref=app https://www.sololearn.com/discuss/1290820/?ref=app
19th Dec 2020, 12:49 PM
ㅤㅤㅤ