Lorsque le document de création est HTML ou XHTML, il est important d'ajouter une déclaration Doctype. La déclaration doit être exacte (à la fois en orthographe et dans le cas) d'avoir l'effet souhaité, ce qui le rend parfois difficile. Pour faciliter le travail, ci-dessous une liste des déclarations recommandées que vous pouvez utiliser dans vos documents Web.
Utilisez le balisage suivant comme modèle pour créer un nouveau document XHTML 1.0 à l'aide d'un doctype approprié. Voir la liste ci-dessous si vous souhaitez utiliser un autre type de document.
<? xml version = 1.0 Encoding = utf-8?> <! doctype html public - // w3c // dtd xhtml 1.0 strict // en http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd><html1 xmlns = http: //www.w3.org/1999/xhtml xml: Lang = en Lang = en> <adread> <Title> Un modèle standard XHTML 1.0 strict </ title> <méta-http-equiv = teneur http-equiv = contenu de type contenu de type = text / css /> </ head> <body> <p>… votre contenu html ici… </p> </ody> </html>
<! Doctype Html public - // w3c // dtd html 4.01 // en http://www.w3.org/tr/html4/strict.dtd><!doctype html public - // w3c // dtd html 4.01 transitional // en http://www.w3.org/tr/html4/loose.dtd><!doctype html public - // w3c // dtd html 4.01 Frameset // en http://www.w3.org/tr/html4/framet.dtd>
<! doctype html public - // w3c // dtd xhtml 1.0 strict // en http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd><!doctype html public // w3c // dtd xhtml 1.0 transitional // enme http://www.w33 http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd>
<! doctype html public - // w3c // dtd xhtml 1.1 // en http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd>
<! doctype html public - // w3c // dtd xhtml basic 1.0 // en http://www.w3.org/tr/xhtml-basic/xhtml-basic10.dtd>
<! doctype html public - // w3c // dtd xhtml basic 1.1 // en http://www.w3.org/tr/xhtml-basic/xhtml-basic11.dtd>
<! doctype html public - // ietf // dtd html 2.0 // en>
<! doctype html public - // w3c // dtd html 3.2 final // en>
<! Doctype Math System http://www.w3.org/math/dtd/mathml1/mathml.dtd>
<! Doctype Math Public - // W3C // DTD Mathml 2.0 // Enhttp: //www.w3.org/tr/mathml2/dtd/mathml2.dtd>
<! doctype html public - // w3c // dtd xhtml 1.1 plus mathml 2.0 plus svg 1.1 // en http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd>
<! DocType Svg public - // w3c // dtd svg 1.0 // enhttp: //www.w3.org/tr/2001/rec-svg-20010904/dtd/svg10.dtd>
<! Doctype Svg Public - // w3c // dtd svg 1.1 // enhttp: //www.w3.org/graphics/svg/1.1/dtd/svg11.dtd>
<! DocType Svg Public - // W3C // DTD SVG 1.1 Basic // Enhttp: //www.w3.org/graphics/svg/1.1/dtd/svg11-basic.dtd>
<! DocType Svg Public - // W3C // DTD SVG 1.1 Tiny // Enhttp: //www.w3.org/graphics/svg/1.1/dtd/svg11-tiny.dtd>
<! doctype html public - // w3c // dtd xhtml 1.1 plus mathml 2.0 plus svg 1.1 // en http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd>
<! Doctype SVG: SVG PUBLIC - // W3C // DTD XHTML 1.1 Plus Mathml 2.0 plus SVG 1.1 // en http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd>
http://www.w3.org/tr/1998/rec-html40-19980424/loose.dtd
http://www.w3.org/tr/1998/rec-html40-19980424/frameset.dtd
http://www.w3.org/tr/1999/rec-html401-19991224/loose.dtd
http://www.w3.org/tr/1999/rec-html401-19991224/frameset.dtd
http://www.w3.org/tr/2000/rec-xhtml1-20000126/dtd/xhtml1-transitional.dtd
http://www.w3.org/tr/2000/rec-xhtml1-20000126/dtd/xhtml1-frameset.dtd