W3C home > Mailing lists > Public > www-validator@w3.org > October 2002

Beta: pre in place of code for icon code

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 27 Oct 2002 18:21:36 +0100
To: www-validator@w3.org
Message-ID: <3dc91f50.186339752@smtp.bjoern.hoehrmann.de>

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>
    &lt;p&gt;
      &lt;a href="http://validator.w3.org:8001/check/referer"&gt;&lt;img
          src="http://www.w3.org/Icons/valid-xhtml10"
          alt="Valid XHTML 1.0!" height="31" width="88" /&gt;&lt;/a&gt;
    &lt;/p&gt;
    </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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT