On Sat, 2011-02-26 at 16:27 +0530, Ashim Kapoor wrote:

> The quotes you mention are in the HTML, nothing to do with PHP. HTML will
> work without the quotes in most cases (unless there's a space in the value
> for the attribute) but the quotes are required in XHTML and will cause
> unexpected results.
> 
> Can you elaborate on the XHTML part? Do you mean they are required in XHTML
> but optional in HTML ?
> 
> Many thanks,
> Ashim.


Yes, in HTML the quotes are optional, but they are required in XHTML
documents:
http://www.w3.org/TR/xhtml1/diffs.html#h-4.4


Thanks,
Ash
http://www.ashleysheridan.co.uk


Reply via email to