- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Sun, 27 Oct 2002 18:21:36 +0100
- To: www-validator@w3.org
Hi,
For valid HTML documents the Validator suggests (X)HTML snippets to
include a valid XY badge on the site, e.g. (from the source),
<code>
<p>
<a href="http://validator.w3.org:8001/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</p>
</code>
rendered as
<p> <a href="http://validator.w3.org:8001/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!"
height="31" width="88" /></a> </p>
The HTML recommendation explicitly states authors should avoid leading
and trailing white space in inline elements (code) and the superfluous
leading and trailing whitespace in <p> isn't nice either. The validator
should just use <pre> in favour to <code> again, or both in combination.
regards.
Received on Sunday, 27 October 2002 12:21:23 UTC