Re: Re: loop in horizontal direction (php-html)
| From: | tedd | Date: | Fri, 11 Aug 2006 02:53:10 +0000 |
| Subject: | Re: Re: loop in horizontal direction (php-html) | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240531@lists.php.net to get a copy of this message | ||
At 2:42 PM -0400 8/10/06, Al wrote:
Marcus Bointon wrote: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.comOn 10 Aug 2006, at 16:39, Al wrote:Best double check your facts. W3C specs say the </td> and </tr> are optional. http://www.w3.org/TR/html4/index/elements.html<td>s don't need to be terminated with </td>sThat 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@synchromedia.co.uk | http://www.synchromedia.co.uk/