From the course: CSS Essential Training

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

CSS values and units

CSS values and units - CSS Tutorial

From the course: CSS Essential Training

CSS values and units

- [Narrator] In CSS, the property specifies the style to be changed, like color or font size. The value defines that style, and is specific to the property, like red or 10 pixels. Each property can be defined by different types of values, which can also be used with different units. This lesson will be an overview of some commonly used value types and units. However, how to use specific properties and values will be covered in other lessons throughout the course. In CSS documentation, value types, also referred to as data types, are usually written with angled brackets to distinguish them from properties. Although angled brackets are also used with HTML, these value types are not HTML, this is just the writing convention for the specifications. Let's start with an overview of numeric data types. This category refers to data types that use numbers with or without units, to define styles such as the width and height of an…

Contents