HTML Standard

From . .. poMMo .. .

Jump to: navigation, search

HTML Standards

This is a growing list of standards for XHTML markup to keep poMMo's output consistent.

Treat this a a checklist before submitting new code that effects any include output.

  • Close all elements
    <input type="text" name="demo" />
    NOT
    <input type="text" name="demo">
  • Remove unnecessary spacing
    {t escape=no 1="<strong class=\"required\">" 2="</strong>"}%1Fields%2
    NOT
    {t escape=no 1="<strong class=\"required\">" 2="</strong>"}%1 Fields %2
  • Quote all values
    size="12"
    NOT
    size=12
  • Use attribute value pairs
    selected="selected" & checked="checked"
    NOT
    selected &' checked
Personal tools