Vous êtes sur la page 1sur 3

Le langage HTML

Etape 6 : ajouter de la couleur


<html>
<head>
<title>Ma première page avec du style</title>
<style>
body {

font-family: Georgia,"Times New Roman";

color: green;
background-color: #FFEFD5}

h1 {
font-family: Arial}

</style>
</head>

<body>
[etc.]

Etape 7: la barre de navigation (style)


<html>
<head>
<title>Ma première page avec du style</title>
<style>

body {
padding-left: 11em;

color: green;
background-color: #FFEFD5}
h1 {
font-family: Arial}
ul.navbar {
position: absolute;
top: 2em;
left: 1em;
width: 9em
list-style-type: space-counter;
padding: 10;
margin: 10;

</style>
</head>

<body>
[etc.]

Etape 8: la barre de navigation (style)


<html>
<head>
<title>Ma première page avec du style</title>
<style>

body {
padding-left: 11em;

color: green;
background-color: #FFEFD5}
h1 {
font-family: Arial}

ul.navbar {
position: absolute;
top: 2em;
left: 1em;
width: 9em
list-style-type: space-counter;
padding: 10;
margin: 10;

}
ul.navbar li {
background: white;
margin: 0.5em 0;
padding: 0.3em;
border-right: 1em solid black }

</style>
</head>

<body>
[etc.]

Vous aimerez peut-être aussi