Re: Re: loop in horizontal direction (php-html)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 2:42 PM -0400 8/10/06, Al wrote:
Marcus Bointon wrote:
On 10 Aug 2006, at 16:39, Al wrote:

<td>s don't need to be terminated with </td>s

That is, assuming you don't want your pages to validate. As closing your tags is so trivially easy, it's really not worth not doing! I recently encountered a site that contained 3500 unclosed font tags on a single page; This is a very good way of making a browser go very slowly and eat lots of memory.

Marcus
--Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
marcus@xxxxxxxxxxxxxxxxxx | http://www.synchromedia.co.uk/


Best double check your facts.  W3C specs say the </td> and </tr> are optional.
http://www.w3.org/TR/html4/index/elements.html


Al & Marcus:

Validation? -- true and not true depending upon what DOCTYPE you use.

For example, if you're using HTML 4.01 Strict, Transitional, or Frameset DOCTYPE, then you can get away with not closing the <td> tag (as well as several other tags) and still validate. However, if your using XHTML DOCTYPE, then you must close all tags to validate. In other words, you can't leave off the <td> tag, or any other, and still validate.

Unfortunately, closing ALL tags also means that your code will fail validation IF you use HTML 4.01 DOCTYPE. That always seemed wrong to me, but sharper minds than mine figured it that way.

tedd

PS: <font> tags (open or closed) should never be on a page anyway.
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux