Difference between revisions of "DocType header for templates"
From Joomla! Documentation
(Marked for translation) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude><languages /></noinclude> | <noinclude><languages /></noinclude> | ||
<translate> | <translate> | ||
+ | <!--T:7--> | ||
Current thinking is that HTML5 should be used for Joomla! templates.<br /> | Current thinking is that HTML5 should be used for Joomla! templates.<br /> | ||
Set your template to html5 output: | Set your template to html5 output: | ||
Line 12: | Line 13: | ||
{{:Recommended DocTypes/<translate><!--T:3--> | {{:Recommended DocTypes/<translate><!--T:3--> | ||
en</translate>}} | en</translate>}} | ||
− | |||
<translate>===References about DocTypes=== <!--T:4--></translate> | <translate>===References about DocTypes=== <!--T:4--></translate> | ||
{{:References about DocTypes/<translate><!--T:5--> | {{:References about DocTypes/<translate><!--T:5--> |
Latest revision as of 07:31, 18 August 2015
Current thinking is that HTML5 should be used for Joomla! templates.
Set your template to html5 output:
$doc = JFactory::getDocument();
$doc->setHtml5(true);
Recommended DocTypes[edit]
List of recommended DocTypes for different circumstances:
- HTML5: <!DOCTYPE html>
References about DocTypes[edit]
References about recommended DocTypes: