Class Selectors
Class names assigned to HTML elements via the class=""
attribute can also be used to style elements. To select class elements, prepend a dot (.
) to the front of the class name in the CSS.
Using class selectors is a great way to select elements that serve the same function.
- Previous
- Next