CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   General web building (http://www.codingforums.com/forumdisplay.php?f=10)
-   -   "" or not "" (http://www.codingforums.com/showthread.php?t=2713)

mouse 07-25-2002 11:17 PM

"" or not ""
 
I've noticed some use " " in their html and some don't. For example...

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


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.


All times are GMT +1. The time now is 03:18 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.