Which DocType header to use
From Joomla! Documentation
(Difference between revisions)
m |
m (whitespace cleanup) |
||
| (8 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
Current thinking is that XHTML 1.0 Transitional should be used for Joomla! templates. | Current thinking is that XHTML 1.0 Transitional should be used for Joomla! templates. | ||
| − | + | ===Recommended DocTypes=== | |
{{:Recommended DocTypes|}} | {{:Recommended DocTypes|}} | ||
| − | + | ===References about DocTypes=== | |
{{:References about DocTypes|}} | {{:References about DocTypes|}} | ||
| − | + | <noinclude>[[Category:Beginners]][[Category:Templates]][[Category:Topics]][[Category:HTML|DocType]][[Category:Template FAQ]]</noinclude> | |
| − | <noinclude> | + | |
| − | [[Category:Beginners]] | + | |
| − | [[Category:Templates]] | + | |
| − | [[Category:Topics]] | + | |
| − | [[Category:HTML|DocType]] | + | |
| − | </noinclude> | + | |
Latest revision as of 05:04, 15 September 2011
Current thinking is that XHTML 1.0 Transitional should be used for Joomla! templates.
[edit] 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>
[edit] References about DocTypes
References about recommended DocTypes:
- http://www.w3.org/QA/2002/04/valid-dtd-list.html
- http://www.w3.org/QA/2002/04/Web-Quality
- http://www.alistapart.com/stories/doctype
- http://htmlhelp.com/tools/validator/doctype.html
- http://vivalaweb.info/blog/musing/2005/05/14/choosing-the-right-doctype-a-straight-forward-guide/
- http://hsivonen.iki.fi/doctype/