On Wed, 28 Aug 2002 11:06, Levi Ramsey wrote:
> HTML spec requires double-quotes.
IRL I see both single and double quotes, and sometimes no quotes. Also, the
HTML 4.0 spec does say:
An attribute is included in the start tag only--never the end tag--and
takes the form Attribute-name="Attribute-value". The attribute value is
delimited by single or double quotes. The quotes are optional if the
attribute value consists solely of letters in the range A-Z and a-z,
digits (0-9), hyphens ("-"), and periods (".").
Attribute names are case-insensitive, but attribute values may be
case-sensitive.
http://www.htmlhelp.com/reference/html40/structure.html#attributes
Hmm. `Single or double quotes' - does that mean <tag attr='value"> is valid?
Are `Smart Quotes' (AKA upside-down question marks on some browsers) counted
as double quotes, since that's how they display on IE?
Cheers; Leon