Wenn das Authoring -Dokument HTML oder XHTML ist, ist es wichtig, eine DocType -Erklärung hinzuzufügen. Die Erklärung muss genau sein (sowohl in der Rechtschreibung als auch für den Fall), um den gewünschten Effekt zu haben, was es manchmal schwierig macht. Um die Arbeit zu erleichtern, finden Sie unten eine Liste der empfohlenen Erklärungen, die Sie in Ihren Webdokumenten verwenden können.
Verwenden Sie das folgende Markup als Vorlage, um ein neues XHTML 1.0 -Dokument mit einem ordnungsgemäßen DocType zu erstellen. Siehe die Liste unten, wenn Sie einen anderen Dokumenttyp verwenden möchten.
<xml Version = 1.0 coding = utf-8?> <! docType html public-// w3c // dtd xhtml 1.0 strict // en http://www.w.w3.org/tr/xhtml1/dtd/xhtml1-Sstrict.dtd> ·dtd> <dtd> & <dtd><html1/dtd/xhtml1-Sstrict.dtd> & <html1/dtd/xhtml1-Sstrict.dtd> ·dtd> · xmlns = http: //www.w3.org/1999/xhtml xml: Lang = en Lang = en> <kopf> <titels> An xhtml 1.0 Strenge Standardvorlage </title> <meta http-äquiv = content-type content = html; charSet = charSet = charSet = charSet = charet http-äquiv = content-Stil-Inhalt = Text/CSS/> </head> <body> <p>… Ihr HTML-Inhalt hier… </p> </body> </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 tranitional // engranital // engrany1 // http://www.w3.org/tr/html4/loose.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//en http://www.w3.org/tr/xhtml1/dtd/xhtml1-transsitional.dtd><!Doctype html public -// w3c // dtd xhtml 1.0 rampeet // en 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 endgültig // en>
<! docType Math System http://www.w3.org/math/dtd/mathhml1/mathhml.dtd>
<! docType math public -// w3c // dtd mathml 2.0 // Enhttp: //www.w3.org/tr/mathhml2/dtd/mathhml2.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-math-dtd>
<! docType svg public-// w3c // dtd svg 1.0 // ushttp: //www.w3.org/tr/2001/rec-svg-20010904/dtd/svg10.dtd>
<! docType svg public -// w3c // dtd svg 1.1 // ushttp: //www.w3.org/graphics/svg/1.1/dtd/svg11.dtd>
<! docType svg public -// w3c // dtd svg 1.1 basic // ushttp: //www.w3.org/graphics/svg/1.1/dtd/svg11-basic.dtd>
<! docType svg public -// w3c // dtd svg 1.1 tiny // ushttp: //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-math-dtd>
<! docType svg:
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