|

Initiation au HTML
  
5. Le Texte
5.1 Les titres et sous-titres
<H1> Titre <H1> | Titre |
<H2> Sous-titre <H2> | Sous-titre |
<H3> Chapitre <H3> | Chapitre |
<H4> Paragraphe <H2> | Paragraphe |
<H5> Sous paragraphe <H5> | Sous paragraphe |
<H6> Sous sous sous... <H6> | Sous sous sous... |
5.2 L'alignement :
<DIV ALIGN=LEFT> à GAUCHE (Défaut) </DIV>
<DIV ALIGN=CENTER> au CENTRE </DIV>
<DIV ALIGN=RIGHT> à DROITE </DIV>
Remarque :
<CENTER> Pour le centrage, on peut aussi Utiliser ceci </CENTER>
5.3 Les Fontes :
5.3.1 Modification de la Taille :
5.3.1.1 Valeur Absolue :
<FONT SIZE=X> </FONT>
Où X est un chiffre compris de 1 à 7, la valeur 3 est la valeur par défaut.
1
2
3
4
5
6
7
5.3.1.2 Valeur Relative :
<FONT SIZE="+X"> </FONT>
Où X est un chiffre compris entre -2 et 3
-2 -1 +0
+1 +2 +3
5.3.2 Modification de la couleur :
<FONT COLOR="#XXX"> </FONT>
Où chaque X représente la valeur hexadécimale (compris entre 00 et FF) des couleurs de base RGB.
- FF0000 (Rouge)
- 00FF00 (Vert)
- 0000FF (Bleu)
- 000000 (Noir)
- FFFFFF (Blanc)
- FFFF00 (jaune)
- ...
5.5 Les règles horizontales :
<HR>
<HR WIDTH="75%">
<HR WIDTH="50%" ALIGN=left>
<HR WIDTH="50%" ALIGN=right>
<HR SIZE=1>
<HR SIZE=1 NOSHADE>
<HR SIZE=2>
<HR SIZE=2 NOSHADE>
<HR SIZE=4>
<HR SIZE=4 NOSHADE>
<HR SIZE=8>
<HR SIZE=8 NOSHADE>
5.6 Les caractères spéciaux
Quatre caractères ASCII ont une signification particulière en HTML
(<, > " &). On utilise donc une séquence commençant
par & pour les représenter. Les caractères accentués
se représentent aussi par de telles séquences. Le degré (°) est très
spécial (&#176;) tout comme (™) et, curieusement, le µ sort correctement.
Les caractères spéciaux |
á | á |
â | â |
à | à |
ä | ä |
ã | ã |
å | å |
Á | Á |
 |  |
À | À |
Ä | Ä |
à | à |
Å | Å |
( La plupart de ces combinaisons sont valables pour e, i, o, u, y, E, I, O, U, Y ) |
|
ç | ç |
Ç | Ç |
ñ | ñ |
Ñ | Ñ |
© | © |
® | ® |
° | ° |
< | < |
> | > |
" | " |
& | & |
™ | |
Pour une liste plus complète, consulter les documents :
Martin Ramsh - iso8859 - 1 table
ASCII - ISO 8859-1 (Latin-1) with HTML 3.0 Entities Table.
  
|
|