Changes between Version 17 and Version 18 of CodingStyle


Ignore:
Timestamp:
Aug 20, 2008, 3:22:56 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodingStyle

    v17 v18  
    135135=== HTML ===
    136136
    137 PHP scripts should output HTML 4.01, not XHTML. XHTML isn't supported by many browsers. Serving XHTML with a text/html MIME type is not a solution either (it's not XHTML anymore, it becomes invalid HTML).
     137PHP scripts should output "HTML 4.01 Transitional".
     138The HTML should pass the [http://validator.w3.org/ W3C validator].
     139This means, e.g., you must have quotes around attributes
     140that have non-alpha characters in them.
     141However, all-alpha attributes need not have quotes,
     142and tags like <br> and <p> need not be closed.
     143
     144The HTML need not be XHTML.
     145XHTML isn't supported by many browsers.
     146Serving XHTML with a text/html MIME type is not a solution either
     147(it's not XHTML anymore, it becomes invalid HTML).
    138148
    139149This means no self-closing tags like `<br />`.