Recommended DTDs to use in your Web document


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Recommended DTDs to use in your Web document.
  2.  
  3. When authoring document is HTML or XHTML, it is important to Add a Doctype declaration. The declaration must be exact (both in spelling and in case) to have the desired effect, which makes it sometimes difficult. To ease the work, below is a list of recommended declarations that you can use in your Web documents.
  4. Template
  5.  
  6. Use the following markup as a template to create a new XHTML 1.0 document using a proper DOCTYPE. See the list below if you wish to use another document type.
  7.  
  8. <?xml version="1.0" encoding="utf-8"?>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  10. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  11. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  12.  
  13. <title>An XHTML 1.0 Strict standard template</title>
  14. <meta http-equiv="content-type"
  15. content="text/html;charset=utf-8" />
  16. <meta http-equiv="Content-Style-Type" content="text/css" />
  17. </head>
  18.  
  19.  
  20. <p>… Your HTML content here …</p>
  21.  
  22. </body>
  23. </html>
  24.  
  25. DTD List
  26.  
  27. HTML 4.01 - Strict, Transitional, Frameset:
  28.  
  29. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  30. "http://www.w3.org/TR/html4/strict.dtd">
  31. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  32. "http://www.w3.org/TR/html4/loose.dtd">
  33. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
  34. "http://www.w3.org/TR/html4/frameset.dtd">
  35.  
  36.  
  37. XHTML 1.0 - Strict, Transitional, Frameset:
  38.  
  39. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  40. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  41. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  42. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  43. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
  44. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  45.  
  46.  
  47. XHTML 1.1 - DTD:
  48.  
  49. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  50. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  51.  
  52.  
  53. XHTML Basic 1.0 - DTD:
  54.  
  55. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
  56. "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
  57.  
  58.  
  59. XHTML Basic 1.1 - DTD:
  60.  
  61. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
  62. "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
  63.  
  64.  
  65. HTML 2.0 - DTD:
  66.  
  67. <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
  68.  
  69. HTML 3.2 - DTD:
  70.  
  71. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  72.  
  73. MathML 1.01 - DTD:
  74.  
  75. <!DOCTYPE math SYSTEM
  76. "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">
  77.  
  78.  
  79. MathML 2.0 - DTD:
  80.  
  81. <!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN"
  82. "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd">
  83.  
  84.  
  85. XHTML + MathML + SVG - DTD:
  86.  
  87. <!DOCTYPE html PUBLIC
  88. "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
  89. "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
  90.  
  91.  
  92. SVG 1.0 - DTD:
  93.  
  94. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
  95. "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
  96.  
  97.  
  98. SVG 1.1 Full - DTD:
  99.  
  100. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  101. "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  102.  
  103.  
  104. SVG 1.1 Basic - DTD:
  105.  
  106. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN"
  107. "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
  108.  
  109.  
  110. SVG 1.1 Tiny - DTD:
  111.  
  112. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN"
  113. "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
  114.  
  115.  
  116. XHTML + MathML + SVG Profile (XHTML as the host language) - DTD:
  117.  
  118. <!DOCTYPE html PUBLIC
  119. "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
  120. "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
  121.  
  122.  
  123. XHTML + MathML + SVG Profile (Using SVG as the host) - DTD:
  124.  
  125. <!DOCTYPE svg:svg PUBLIC
  126. "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
  127. "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
  128.  
  129.  
  130. List of DTDs for the CSS validator.
  131.  
  132. Authoring tools MUST NOT use the following list.
  133.  
  134. HTML 4.0
  135. http://www.w3.org/TR/1998/REC-html40-19980424/strict.dtd
  136. http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd
  137. http://www.w3.org/TR/1998/REC-html40-19980424/frameset.dtd
  138. HTML 4.01
  139. http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd
  140. http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd
  141. http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd
  142. XHTML 1.0
  143. http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd
  144. http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd
  145. http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-frameset.dtd
  146. XHTML 1.1
  147. http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11.dtd
  148.  
  149. Valid XHTML 1.0! Send us Feedback
  150. Last updated: $Date: 2007/04/26 07:52:11 $ by $Author: dom $

URL: http://www.w3.org/QA/2002/04/valid-dtd-list.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.