[thelist] quoting attributes and tag case

jon steele jjsteele22 at yahoo.com
Fri Aug 16 18:09:01 CDT 2002


Tags and attributes are all lowercase.

As far as quoting goes, I read that double quotes are required...but most resources I have read
(including http://www.w3.org/TR/xhtml1/#diffs) just say quotes. I always use double quotes anyway.

HTH
Jon

--- Tom Dell'Aringa <pixelmech at yahoo.com> 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:
>
> document.write('<td width="10">foo</td>');
>
> If I really need the double. Its just I'm so used to the other...
>
> 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.
>
> Here where I contract, the code is brutal, you have upper and lower
> case inside a single document, some att's single quoted, some double,
> some NOT quoted - again all in the same doc..blech!
>
> Tom
>
> =====
> var me = tom.pixelmech.webDeveloper();
>
> http://www.pixelmech.com/
> http://www.maccaws.com/
> [Making A Commercial Case for Adopting Web Standards]
>
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com



More information about the thelist mailing list