[thelist] quoting attributes and tag case

Lachlan Cannon luminosity at members.evolt.org
Fri Aug 16 21:10:01 CDT 2002


Tom Dell'Aringa wrote:
> Two questions fer y'all --
>
> 1. I prefer double quoting attributes. Does XHTML care if they are
> single quoted? I'm thinking not, but not sure. Reason I ask: If you
> write a script that uses document.write to output html - you need to
> alternate your quotes of course:
>
> document.write("<td width='10'>foo</td>");
>
> So you end up with single quotes...I guess I could do this:

Of course you can escape your double quotes as well...

document.write("<td width=\"10\">foo</td>");

> 2. Tag Case: What do you all use? I've used lower case for some time,
> but it seems that in the XML world, its Upper Case for everything. On
> the one hand, upper case does make the tags stick out...just
> wondering what you all thought.

In XHTML everythings lowercase.. a trend that hopefully the W3C will
keep.. I hate uppercase tags. :-/


--
Lach
__________________________________________
Web: http://illuminosity.net/
E-mail: lach at illuminosity.net
MSN: luminosity @ members.evolt.org
__________________________________________





More information about the thelist mailing list