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

CSS property value

CSS property value Bad Practice
CSS property value Best Practice

Each declaration has a property and its value. The value chooses one out of many possible appearances for a given property.

Every property used in CSS has a set of values it can take. Most values are relatively simple keywords or numeric values. Some properties have few allowed values. For example, the text-align property can take 6: left, right, center, and a couple of more specific ones.[1]

Other properties like color have a much larger number of possible values but also allow multiple value types. The color can be specified through hex and RGB values and color keywords.

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