|
Posted by Michael Fesser on 06/17/07 01:15
..oO(william.clarke)
>With regard to the quotes, as I usually aim for 100% standards-
>compliant XHTML I'll stick with double quoting attributes (as per the
>XHTML spec examples: http://www.w3.org/TR/xhtml1/#h-4.4 ) even
>though it does not explicitly say which quotation marks are valid I'll
>just follow the W3C example for now.
Both are perfectly valid. From the HTML spec:
| By default, SGML requires that all attribute values be delimited using
| either double quotation marks (ASCII decimal 34) or single quotation
| marks (ASCII decimal 39). [...]
http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.2
The same applies to XML and its derivates (it's in the spec as well).
So you can use both, whatever fits best. I use one or the other as
necessary, simply in order to avoid the escaping.
Micha
Navigation:
[Reply to this message]
|