Loretta Kasper's Week 3 Review Questions

1.  Please validate the following code:

BODY {
font-family : Arial, Helvetica;
font-style : underline;
margin-left : 6px;
margin-right : 5px;
text-indent : 9px;
}

Paste your result into your e-mail message or posted response.

Errors :
Line: 12 Context : BODY Invalid number : font-style
underline is not a font-style value : underline


The validated code is as follows:
BODY {
font-family : Arial, Helvetica;
text-indent : 9px;
margin-right : 5px;
margin-left : 6px;
}

2.  Convert the following STYLE definitions so that it looks similar using em instead of pt.

<STYLE TYPE="text/css">
<!--
H1, H2, H3 {
font-family : Arial, Helvetica, sans-serif;
font-style : italic;
color : #000080;
text-decoration : underline;
background-color : #00FF00;
}
H1 {font-size: 30pt}
H2 {font-size: 22pt}
H3 {font-size: 16pt}
H4 {font-size: 12pt}
-->

<STYLE TYPE="text/css">
<!--
H1, H2, H3 {
font-family : Arial, Helvetica, sans-serif;
font-style : italic;
color : #000080;
text-decoration : underline;
background-color : #00FF00;
}
H1 {font-size: 2.5em}
H2 {font-size: 1.7em}
H3 {font-size: 1.2em}
H4 {font-size: 1em}
-->

Examples using pt style
Examples using em style

Make your own free website on Tripod.com