Why # in CSS?
Why # in CSS?
Out of context: Reply #9
- Started
- Last post
- 33 Responses
- jon_0
on the simplest of levels you should use ids for elements which will appear on a page only once as it is a unique identifier
you can apply a class as many times as you want
another advantage of classes is that you can apply multiple classes at once, so if i define .class1 and .class2 i could put apply them both by using class="class1 class2"