IDs vs Classes
CSSI got asked a simple question today that I honestly didn't know the answer too.
Bob: When using a particular style, are there any advantages over using CLASS vs. ID?
Me: I'm not sure what the differences between class and ID are to be honest, I always use class.
Not knowing the answer to a simple question like that often bothers me so I need to find the answer. A quick Google search lead me to tizag.com and this tutorial.
The whole tutorial gets summed up pretty well in the last line:
Use IDs when there is only one occurence per page. Use classes when there are one or more occurences per page.
How do you all use IDs vs Classes?
Good Day!
Ryan





Loading....