CSS Data Types

Alphabetical list of CSS data types.

About CSS Data Types

CSS is made up of properties, functions, "at rules", and more. The CSS specification defines how these features work by explaining the feature, and listing the data types that they accept.

For example, the CSS specification states that the font-size property accepts the following values:

<absolute-size> | <relative-size> | <length> | <percentage>

So you could specify an <absolute-size> value, like this:

font-size: large;

Or you could specify a <relative-size> value, like this:

font-size: larger;

Or you could specify a <length> value, like this:

font-size: 24px;

Or you could specify a <percentage> value, like this:

font-size: 120%;

Understanding the different data types is key to understanding how to use the various CSS features.