Les balises titres possèdent un attribut permettant un alignement indépendant du reste du document.
L'attribut align="Type d'alignement"* permet l'alignement du titre.
* Les options possibles d'alignement sont "Left" (par défaut) pour la gauche, "right" pour la droite ou "center" pour le centre.
<html>
<head>
<title>Un titre pertinent</title>
<meta name="Description" content="...">
...
</head>
<body>
<h1 align="Alignement">Titre</h1>
...
Diverses commandes HTML
...
</body>
</html> |
| Code |
|---|
| Exemple |
<h1 align="left"> Premier titre </h1> |
Premier titre |
<h2 align="center"> Second titre </h2> |
Second titre |
<h3 align="right"> Troisième titre </h3> |
Troisième titre |
<h4 align="center"> Quatrième titre </h4> |
Quatrième titre |
<h5 align="left"> Cinquième titre </h5> |
Cinquième titre |
<h6 align="right"> Sixième titre </h6> |
Sixième titre |