DocType header for templates

From Joomla! Documentation

Revision as of 10:59, 9 April 2010 by Dynedain (Talk | contribs)

Current thinking is that XHTML 1.0 Transitional should be used for Joomla! templates.

Recommended DocTypes

<translate> List of recommended DocTypes for different circumstances:</translate>

  • HTML5: <!DOCTYPE html>

Joomla Internal XML DocTypes

Joomla! 1.5 Internal Doctypes

List of doctypes used by the installation manifest XMLs for Joomla! and 3rd party add-ons.

  • Template Manifest (templateDetails.xml):

<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" "">

  • Component Manifest (component-install.xml):

<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD component 1.0//EN" "">

  • Plugin Manifest (plugin-install.xml):

<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD plugin 1.0//EN" "">

  • Module Manifest (module-install.xml):

<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD module 1.0//EN" "">

Legacy DTDs

Up until December 2008, when was shut down, the Internal DTDs were hosted at Since that time, they have been moved to and their locations corrected in Joomla 1.5.9. Some 3rd party Joomla! add-ons may be referencing the old locations, which may work, but is deprecated.

References about DocTypes

<translate> References about recommended DocTypes:</translate>