Jump to content

class vs id


ociugi

Recommended Posts

id also has a higher specificity than class

 

their names give the game away - a class is a broad "type"; an id is a specific and unique label

 

really, you should have looked in the opening part of any basic css tutorial and you'd have found the answers to your questions

Link to comment
https://forums.phpfreaks.com/topic/69908-class-vs-id/#findComment-351226
Share on other sites

You've asked a very important question.

 

Here is an easy to understand link about the whole thing (it is SO worth it to go to this site and learn the basics) bookmark this link - after 3 years, I still occasionally go to it when I get stumped:

 

http://css.maxdesign.com.au/selectutorial/

Link to comment
https://forums.phpfreaks.com/topic/69908-class-vs-id/#findComment-351389
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.