Actions

Difference between revisions of "DocType header for templates"

From Joomla! Documentation

m (whitespace cleanup)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Current thinking is that XHTML 1.0 Transitional should be used for Joomla! templates.
+
<noinclude><languages /></noinclude>
===Recommended DocTypes===
+
<translate>
{{:Recommended DocTypes|}}
+
<!--T:1-->
===References about DocTypes===
+
Current thinking is that HTML5 should be used for Joomla! templates.
{{:References about DocTypes|}}
+
</translate>
<noinclude>[[Category:Beginners]][[Category:Templates]][[Category:Topics]][[Category:HTML|DocType]][[Category:Template FAQ]]</noinclude>
+
 
 +
<translate>===Recommended DocTypes=== <!--T:2--></translate>
 +
{{:Recommended DocTypes/<translate><!--T:3-->
 +
en</translate>}}
 +
 
 +
<translate>===References about DocTypes=== <!--T:4--></translate>
 +
{{:References about DocTypes/<translate><!--T:5-->
 +
en</translate>}}
 +
 
 +
<noinclude>
 +
<translate>
 +
<!--T:6-->
 +
[[Category:DocType]]
 +
[[Category:Template Development]]
 +
[[Category:Template Reference]]
 +
</translate>
 +
</noinclude>

Latest revision as of 10:35, 17 May 2015

Other languages:
English • ‎français • ‎Nederlands

Current thinking is that HTML5 should be used for Joomla! templates.

Recommended DocTypes

List of recommended DocTypes for different circumstances:

  • HTML 4.01 Strict: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  • HTML 4.01 Transitional: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  • HTML 4.01 Frameset: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
  • XHTML 1.0 Strict: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  • XHTML 1.0 Transitional: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  • XHTML 1.0 Frameset: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  • XHTML 1.1 DTD: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  • HTML5: <!DOCTYPE html>


References about DocTypes

References about recommended DocTypes: