<?xml version="1.0" encoding="utf-8"?>

Using CSS class selectors

Using CSS class selectors

Class selectors are what you'll end up using most of the time when creating style sheets. Class selectors are introduced with a full stop (.). This selector applies styling to all elements with a specified class attribute. It's a great way to customize how CSS rules apply by creating attributes that can be applied to any element to give it a certain styling.

Improve your UX & Product skills with interactive courses that actually work