[thelist] quoting attributes was not filling total width

aardvark roselli at earthlink.net
Tue Apr 17 12:55:49 CDT 2001


> From: "Tony Crockford" <tonyc at boldfish.co.uk>
>
> Aardvark said:
> >btw, you really should get into the habit of quoting attributes...
> 
> As a PHP newbie, I found that errors are reported when I use quotes on
> attributes.  Am I missing something?

errors are reported by what?  on the HTML?  by your PHP editor?

> What's the *right* way?

heh, well, before XHTML 1.0, it was recommended that you use 
quotes on all attributes, though specifically *required*...

however, if you code to XHTML or are coding HTML4.01 that you 
want to later move over to XHTML with a minimal of hassle, then 
you should conform to the XHTML requirements, which is all lower-
case tags and attributes (not their values, their names) and quote 
all attributes...

i used to use capitalization to help me spot nesting tables... first 
table would be lower-case, second would be tabbed in and upper-
case... but i don't do that anymore since all my code is 
(supposed to be) XHTML-ready...




More information about the thelist mailing list