Classes and IDs
The class attribute groups elements that share a style, while the id attribute gives one element a unique name. Learn how they work and when to use each.
Lesson 18 of 23
The class attribute groups elements that share a style, while the id attribute gives one element a unique name. Learn how they work and when to use each.