Utilisation de la balise style dans l’entête : 2ème exemple

posted in: html | 0

 
 

Ceci est un titre

Ceci est un paragraphe.  
 

Le code expliqué :

<!DOCTYPE html>
<html>
<head>
<style>
h1 {
color: blue;
font-family: verdana;
font-size: 300%;
}
p {
color: red;
font-family: courier;
font-size: 160%;
}
</style>
<head>
<body>
<h1>Ceci est un titre</h1>
<p>Ceci est un paragraphe.</p>
</body>
</html>

logowebmaster1