CSS

33 lessons

Achievements
Combined Shape@2x

The Certificate

avatar

class vs id

You may ask what's the difference between CSS class and id selectors?

The main difference between CSS class and ID is that ID selectors have to be used once in an HTML document. It means that individual elements must all have unique IDs. However, you can use class repeatedly in an HTML document. Therefore, you can add CSS rules to more elements with class selectors.