CSS data types define typical values (including keywords and units) accepted by CSS properties and functions. They are a special kind of component value type.
In formal syntax, data types are denoted by a keyword placed between the inequality signs "<" and ">".
Index
The data types defined by the set of CSS specifications include the following:
<angle>
<angle-percentage>
<angular-color-hint>
<angular-color-stop>
<attr-fallback>
<attr-name>
<basic-shape>
<blend-mode>
<calc-product>
<calc-sum>
<calc-value>
<color>
<color-stop>
<color-stop-angle>
<counter-style>
<custom-ident>
<dimension>
<filter-function>
<flex>
<frequency>
<frequency-percentage>
<gradient>
<ident>
<image>
<integer>
<length>
<length-percentage>
<number>
<number-percentage>
<percentage>
<position>
<quote>
<ratio>
<resolution>
<shape-box>
<shape-radius>
<string>
<time>
<time-percentage>
<timing-function>
<toggle-value>
<transform-function>
<type-or-unit>
<url>
<url-modifier>
<zero>
Specifications
Specification | Status | Comment |
---|---|---|
CSS Values and Units Module Level 4 | Editor's Draft | |
CSS Values and Units Module Level 3 | Candidate Recommendation | Initial definition. |