Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Titre du document</title>
<style>
p.normal {
font-weight: normal;
}
p.lighter {
font-weight: lighter;
}
p.bold{
font-weight: bold;
}
p.bolder {
font-weight: bolder;
}
p.fweight {
font-weight: 600;
}
</style>
</head>
<body>
<h2>Exemple de la propriété font-weight</h2>
<p class="normal">Nous avons utilisé un poid normal ici.</p>
<p class="lighter">Ce poid est plus léger.</p>
<p class="bold">Un poid gras.</p>
<p class="bolder">Un texte plus gras.</p>
<p class="fweight">Poid de police est 600 ici.</p>
</body>
</html>