+ 3

What is the difference between 'class' and 'id' tags?

How to use them?

19th Jul 2021, 12:43 AM
Tshering Nidup
5 Respostas
+ 5
The id is like a tags name The class is like its family Only one id can be given to a tag but many classes can be given to it The same id can be given to only one tag but many tags can have the same class name
19th Jul 2021, 1:09 AM
Brain & Bones
Brain & Bones - avatar
+ 3
Thank you, StoneBanks and Brain & Bones. Your help is highly appreciated.
19th Jul 2021, 1:11 AM
Tshering Nidup
+ 2
Thank you for the correction. I am new to this coding world so I am trying to learn everything from a scratch without a tutor. Thank you for your answers.
19th Jul 2021, 1:08 AM
Tshering Nidup
0
19th Jul 2021, 7:43 AM
Tshering Nidup
0
We can add so many classes in a tag but we can't add two or more IDs in one tag...
20th Jul 2021, 11:51 AM
Aditya Bhagwat
Aditya Bhagwat - avatar