Documentation Menu

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 1 guest online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow Manual arrow 2. Advanced Templating arrow Template Standards

Template Standards PDF Print E-mail

Standards (DRAFT)

Identify the Language in the Head Tag

The HTML element must include the lang attribute.

<html xmlns="" lang="<?php echo _LANGUAGE; ?>">

Note: From Joomla 1.1 onwards it will be possible to use $_LANG->isoCode() instead of _LANGUAGE.


Provide a Summary for Tables

The TABLE element should include the summary attribute to describe it's structure and purpose.

<table summary="Hits on news compared to help">
    <caption>Hits on news compared to help</caption>
    <!--table cells here-->

The use of the summary attribute for layout tables is at the discretion of the designer but is generally not recommended.


Link Text

Make link text phrases make sense when they are read out in context and also ensure that different link addresses have different text.  For example, avoid the use of "click here".


Associate Form Controls with the LABEL Element

A LABEL element is able to directly associate a description of a form element to the element itself.  The LABEL for attribute must uniquely match the id attribute of the form element.

<label for="mod_login_username">
    <?php echo $_LANG->_( '_USERNAME' ); ?>
<br />
<input id="mod_login_username" name="username" type="text"
   class="inputbox<?php echo $moduleclass_sfx; ?>" alt="username" size="10" />

With this association, some browsers allow for the clicking of the label to acquire focus for the control.


Last Updated ( Friday, 09 September 2005 )
< Prev