View Full Version : "" or not ""

07-25-2002, 11:17 PM
I've noticed some use " " in their html and some don't. For example...

<table width=100 cellspacing=0 cellpadding=3>
<!-----other code-----!>

I use " " wherever I specify something, I always assumed that was "correct". Am I wrong?

Alex Vincent
07-25-2002, 11:49 PM
I think HTML 4.01 requires quotes on attribute values. I'm not sure.

Quotes are preferable, though. In XHTML, they are required.

Roy Sinclair
07-25-2002, 11:53 PM
Proper HTML requires the use of double quote marks around the value of all parameters. Defective browser implementations have allowed sloppy HTML to get away without the double quotes but any good validator like HTML Tidy will point out any such code as incorrect.