Forum Moderators: open

Message Too Old, No Replies

Single quotes in tags

is there anything wrong with it?

         

BradleyT

3:08 pm on Dec 1, 2005 (gmt 0)

10+ Year Member



I can't remember ever seeing anything that said this might cause cross-browser trouble but just want to make sure.

I.E. <a href='blah.html'>

Robin_reala

3:53 pm on Dec 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From the HTML4.01 recommendation:

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).

All XHTML1.0 has to offer on the subject is that attributes must be quoted, but doesn't specify if any particular type of quote is necessary. I don't think there'll be a problem either way.