eXtensible HTML : HTML extensible.
Redéfinir le HTML avec XML afin de le rendre extensible et traitable par des systèmes XML.
XHTML définit différents ensembles de contenus, auquels seront affectées des propriétés par défaut (propriétés d'affichage en CSS par exemple) :
Ensemble | Nom | Exemples | Propriétés |
---|---|---|---|
En-tête | Heading |
head , meta , title |
|
Bloc | Block |
p , div, blockquote, h1...h6 |
Largeur, hauteur |
A la suite | Inline |
a , span, strong, em, img |
|
Liste | List |
ul, ol |
|
Formulaire | Form |
form |
|
Elément de formulaire | FormCtrl |
input |
|
Flux | Flow |
Mélange de Heading , Block , List et Inline |
Version | 1.0 | MP | 1.1 | 1.2 | 2.0 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1.1 | 1.2 | 1.3 | Core | Abstract | |||||||||||||||||||||
Variante/module | Frameset | Transitional | Strict | Structure | Text | Hypertext | List | Base | Basic Tables | Image | Link | Metainformation | Object | Stylesheet | Target | Events | Presentation | Scripting | |||||||
Multi-cadres | frameset |
||||||||||||||||||||||||
Centrage | center |
||||||||||||||||||||||||
Fonte | font |
||||||||||||||||||||||||
Barré | strike |
||||||||||||||||||||||||
Caractères asiatiques | ruby , rbc , rtc , rb ,
rt , rc |
||||||||||||||||||||||||
Ancre | a name="someName" |
a |
|||||||||||||||||||||||
Carte | map name="someName" |
map |
|||||||||||||||||||||||
Langue | html lang="fr" |
xml:lang="fr" |
|||||||||||||||||||||||
Grammaire | XSD | ||||||||||||||||||||||||
En-tête (heading) | h1 , h2, h3, h4, h5, h6 |
h |
|||||||||||||||||||||||
Image | img alt="description" | <img>Description</img> | |||||||||||||||||||||||
Italique | i | ||||||||||||||||||||||||
Gras (bold) | b | ||||||||||||||||||||||||
Teletype | tt | ||||||||||||||||||||||||
Indice (subscript) | sub | ||||||||||||||||||||||||
Exposant (superscript) | sup |
Un exemple de document XHTML est :
" encoding="UTF-8"?>
Ma page Texte de la page en gras avec un lien.