Format primer

CSS consists of properties that defined formatting characeristics. Each property has two parts. First, the property name, such as 'color' or 'font-size'. Second, the property value, such as 'blue' or '14pt'. The name is separated from the value using a colon (and possibly also spaces):

color:blue


font-size : 14pt

When several properties are grouped together, the value of one property is separated from the name of the next property using a semi-colon (and possibly also spaces):

color: blue ; font-size: 14pt

These properties are possibly grouped into rules that assign the characteristics to an element. In the following example, the HTML H3 (header three) element is to be displayed as 14pt-in-blue style:

					H3 { color:blue ; font-size:14pt ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.