A)
P {font-family: Times New Roman; - Muuttaa tekstin tyylin: Times New Roman.
font-size: 12pt; - Muuttaa fontin koon 12.
font-weight: bold; - Fontin lihavuus.
font-style: italic; - Muuttaa fontin tyylin: italic.
line-height: 20pt} - Muutta fontin pituuden 12.
B)
HTML:
<HEAD>
<LINK rel="stylesheet" type="text/css" href="Teht. 23 B.css">
</HEAD>
<h1>
Moi
</h1>
<h2>
Moi
</h2>
<h3>
Moi
</h3>
CSS:
H1 {color: #FFFF00;}
H2 {color: #0000FF;}
H3 {color: #000000;}
H1 {font-weight: bold; text-decoration: underline}
H2 {font-style: italic; text-decoration: underline}