Changes between Version 10 and Version 11 of CodingStyle


Ignore:
Timestamp:
Aug 14, 2008, 3:35:41 PM (16 years ago)
Author:
Nicolas
Comment:

Changed HTML section. There were quite non-convincing (ridiculous?) reasons not to use XHTML; I still think XHTML shouldn't be used but it has to be explained better.

Legend:

Unmodified
Added
Removed
Modified
  • CodingStyle

    v10 v11  
    135135=== HTML ===
    136136
    137 It's OK to output HTML rather than XHTML.
    138 I have yet to hear a convincing reason for the latter,
    139 and it's more characters.
     137PHP 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).
     138
     139This means no self-closing tags like `<br/>`.
    140140
    141141=== Getting POST and GET data ===