"Créez vos pages Web"


par Michael B. Karbo.

Codes des exercices CSS du manuel


Code 1

<STYLE TYPE="TEXT/CSS">
BODY {font-size: 15 pt; font-family: Courier; Monaco; Monospace;}
</STYLE>

Premier code pour menu2.html :

<STYLE TYPE="TEXT/CSS">
BODY {font-size: 90%; font-family: Verdana, Arial, sans-serif;}
</STYLE>

Code complet : 

<STYLE TYPE="TEXT/CSS">
BODY {font-size: 90%; font-family: Verdana, Arial, sans-serif; margin-left: 25%; margin-right: 25%;}
H1, H2, H3 { background-color:yellow; color: #0000FF;}
HR {color: #0000FF;}
LI {font-size: 110%; font-family: Comic Sans MS; color: maroon;}
TD {font-size: 90%}
</STYLE>

Lien à la feuille de style externe :

<link REL=Stylesheet HREF="format.css" TYPE="text/css">

Code du document index.html:

<html>
<head>
<title>Mes pages Web</title>
</head>
<frameset     border=0     frameborder=0     framespacing=0>   
<frameset cols="20%,*">       
<frame name="bar" src="sommaire.html">   
<frame name="main" src="paris.html">
</frameset>
</html>


<html>
<head>
<title>Mes pages Web</title>
</head>
<frameset cols="145,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="leftFrame" scrolling="no" noresize src="gauche.html">
<frame name="Main" src="paris.html">
</frameset>
</html>

Code de gauche.html:

<BASE TARGET="Main">