Beta: pre in place of code for icon code

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 UTC