HTML and CSS Reference
In-Depth Information
Even though you've just glanced at CSS, you've already seen the beginnings of
what it can do. Match each line in the style definition to what it does.
Defines the font to use for text.
background-color: #d2b48c;
Defines a border around the body
that is dotted and the color black.
margin-left: 20%;
margin-right: 20%;
Sets the left and right margins to
take up 20% of the page each.
border: 2px dotted black;
Sets the background color to tan.
padding: 10px 10px 10px 10px;
Creates some padding around the
body of the page.
font-family: sans-serif;
1
H
2
A R K U P
3
E
S
R
T
5
S
4
5
6
7
8
A
T T R I B U T E S
I
0
T
9
T
D
R
S
10
H
I T E S P A C E
11
I
U
12
S
T Y L E
E
L
K
R
X
N
C
N
A
E
I
B
T
G
T
T
D
T
U
C
S
U
13
P
A R A G R A P H
S
Z
S
R
H
T
N
C
Z
S
14
E
L E M E N T
I
D
H
15
16
A
A
O
17
B
O D Y
D
G
N
O
S
18
D
A N C E
Y
Search WWH ::




Custom Search