CSS .class Selector
ExampleHow to select all elements that has the class "intro":
Try it yourself » |
Definition and Usage
The .class selector styles all elements with the specified class.
Browser Support
The .class selector is supported in all major browsers.
CSS Version
The .class selector was first introduced in:
CSS 1
Try it Yourself - Examples |
ExampleHow to style all <p> elements with class="hometown":
Try it yourself » |
Complete CSS Reference