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:
So you could specify an <absolute-size>
value, like this:
Or you could specify a <relative-size>
value, like this:
Or you could specify a <length>
value, like this:
Or you could specify a <percentage>
value, like this:
Understanding the different data types is key to understanding how to use the various CSS features.