Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Le tag &lt;div&gt;</title>
</head>
<body>
<h1> Le tag &lt;div&gt; </h1>
<div style="background-color:#8ebf42">
<p>On utilise le tag &lt;div&gt; pour regrouper deux paragraphes pour appliquer un arrière-plan au texte et ajouter de la couleur à celui-ci. <span style="color:#1c87c9">word</span> on le place dans le tag &lt;span&gt;.</p>
<p>Notez que le &lt;div&gt; tag est un élément de niveau de bloc, donc un saut de ligne est placé avant et après.
it.
</p>
</div>
</body>
</html>