CSS allows you to create rules that control the
way that each individual box (and the contents
of that box) is presented.
In this example, block level
elements are shown with red
borders, and inline elements
have green borders.
element creates the
ﬁrst box, then the
create their own boxes within it.
Using CSS, you could add a
border around any of the boxes,
specify its width and height, or
add a background color. You
could also control text inside
a box — for example, its color,
size, and the typeface used.
Width and height
Borders (color, width, and style)
Background color and images
Position in the browser window.
Italics, bold, uppercase,
There are also speciﬁc ways
in which you can style certain
elements such as lists, tables,