+ 3
What is the difference between 'class' and 'id' tags?
How to use them?
5 Antworten
+ 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
+ 3
Thank you, StoneBanks and Brain & Bones. Your help is highly appreciated.
+ 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.
0
💘 X'Sohel Rana thank you.
0
We can add so many classes in a tag but we can't add two or more IDs in one tag...