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

Using classes

Using classes Bad Practice
Using classes Best Practice

CSS Classes will help you stylize HTML elements quickly. They allow you to add lots of attributes to elements at once without repeating the same code.

For example, if you want all elements of the class price to be displayed in blue, set the following rule:

.price {

color:blue;

}

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