CoupdePouce

Gabarits XHTML strict

 

Gabarits prêts à l'emploi

Encodage ISO-8859-1 :

<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"><head>

<title>Votre titre</title>

<meta http-equiv="Content-Type" content="text/HTML; charset=iso-8859-1" />

</head>

<body>

...votre code...

</body>

</html>

 

Encodage UTF-8 ou UTF-16

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">

<head>

<title>

Votre titre

</title>

<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" />

</head>

<body>

...votre code...

</body>

 

 

Utilisation de la déclaration de type de document

Le document doit respecter les normes de validation d'une des trois DTD XHTML : strict, transitional ou frameset. Une déclaration de type de document doit apparaître dans le document juste avant l'élément html
(qui est l'élément racine de tout document XHTML).

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

1 commentaire - aucun rétrolien

Page précédente | 1 2 3 4 5 6 | Page suivante