CSS Values & Types

Beginner
63 Tutorials
Updated: Nov 2026

What You’ll Learn

Data types describe what kinds of values a property can accept. Learn lengths, colors, angles, times, and combinations used across CSS.

Type Index

Numeric & Quantities

Numbers, lengths, angles, times, and related units.

Color, Image & Position

Visual value types used in painting and placement.

Textual Types

Strings, URLs, and identifiers including custom properties.

More

Additional reference topics.

<absolute-size>Tutorial

CSS type <absolute-size>

<angle-percentage>Tutorial

CSS type <angle-percentage>

<basic-shape>Tutorial

CSS type <basic-shape>

<blend-mode>Tutorial

CSS type <blend-mode>

<box-edge>Tutorial

CSS type <box-edge>

<calc-keyword>Tutorial

CSS type <calc-keyword>

<calc-product>Tutorial

CSS type <calc-product>

<calc-sum>Tutorial

CSS type <calc-sum>

<calc-value>Tutorial

CSS type <calc-value>

<color-interpolation-method>Tutorial

CSS type <color-interpolation-method>

<coord-box>Tutorial

CSS type <coord-box>

<dimension>Tutorial

CSS type <dimension>

<display-box>Tutorial

CSS type <display-box>

<display-inside>Tutorial

CSS type <display-inside>

<display-outside>Tutorial

CSS type <display-outside>

<easing-function>Tutorial

CSS type <easing-function>

<filter-function>Tutorial

CSS type <filter-function>

<frequency-percentage>Tutorial

CSS type <frequency-percentage>

<generic-family>Tutorial

CSS type <generic-family>

<gradient>Tutorial

CSS type <gradient>

<hue>Tutorial

CSS type <hue>

<overflow>Tutorial

CSS type <overflow>

<relative-color>Tutorial

CSS type <relative-color>

<relative-size>Tutorial

CSS type <relative-size>

<time-percentage>Tutorial

CSS type <time-percentage>

<timeline-range>Tutorial

CSS type <timeline-range>

<transform-function>Tutorial

CSS type <transform-function>

!importantTutorial

CSS type !important

inheritTutorial

CSS type inherit

initialTutorial

CSS type initial

revertTutorial

CSS type revert

revert-layerTutorial

CSS type revert-layer

unsetTutorial

CSS type unset

fit-contentTutorial

CSS type fit-content

max-contentTutorial

CSS type max-content

min-contentTutorial

CSS type min-content

revert-ruleTutorial

CSS type revert-rule

<corner-shape-value>Tutorial

CSS type <corner-shape-value>

<color-stop>Tutorial

CSS type <color-stop>

<linear-color-stop>Tutorial

CSS type <linear-color-stop>

<radial-color-stop>Tutorial

CSS type <radial-color-stop>

<ending-shape>Tutorial

CSS type <ending-shape>

<fr>Tutorial

CSS type <fr>

Frequently Asked Questions

A data type describes the kind of value a property accepts, such as <length> or <color>.
They explain which units and keywords are valid and how percentages resolve.
No. It is a formal type meaning either a length or a percentage is allowed.
Many functions return typed values, such as rgb() returning a <color>.
Start with <length>, <percentage>, <color>, and <time>.

Next: CSS <length> Data Type

Start with the first tutorial in this section.

Continue →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

6 people found this page helpful