- From: Frank Ellermann <nobody@xyzzy.claranet.de>
- Date: Tue, 24 Apr 2007 22:41:35 +0200
- To: www-validator@w3.org
CE Whitehead wrote: > I customarily close all p elements, etc. and see no reason not to and > nothing against it in the html 4.01 specs: > 1. Line 1971, Column 41: end tag for element "P" which is not open. > <p align="left"><hr width="90%"> </p> The simple way to avoid such issues is to use XHTML 1.0 transitional instead of HTML 4.01. With XHTML it's always clear where the error really is, with HTML 4.01 you've to know the spec. by heart, and then no browser supports it. A <p> cannot contain a <hr>. Horrible HTML 4.01 therefore decides for you that the <hr> implicitly closed the <p>. After that the validator will say that there's a stray </p> after the <hr>. With beautiful XHTML 1.0 you'd get two errors, one "missing </p>" before <hr />, and one "missing <p>" for the </p> after <hr />. And it would be <hr /> with XHTML, no <hr> where you have to know that it's self closing. XHTML is explicit and obvious. HTML is implicit and dangerous. Admittedly "obvious" also means "verbose", you need an id= for any name=, an xml:lang= for any lang=, etc. But at least all markup errors are immediately clear. > Mortgage refinance is Hot. *Terms. Get a 5.375%* fix rate. Check savings > https://www2. nextag. com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2bbb&disc=y&vers=925&s=4056&p=5117 Something adds mortgage spam to your mails... :-( Is that hotmail ? Frank
Received on Tuesday, 24 April 2007 20:44:11 UTC