[wp-docs] <tt> v. <code>
justin at justin-ryan.com
Wed Oct 12 07:57:17 UTC 2011
Is there is a firm convention for using <tt> tags or <code> tags?
Unfortunately, the documentation contradicts itself, leaving me confuzzled:
"To style code within the text of an article, such as listing
the index.php template file, use the <tt> tag to wrap the code within a
sentence. <code> tags also work, but in the past they used an annoying blue
background. Stick with <tt> to be safe." (
"There are two HTML tags which will turn text into monospaced type. They
are <code> and <tt>. The latter is rarely used today, replaced by the more
useful and semantically correct <code>, which distinguishes text that is
computer code from normal language." (
Any guidance would be much appreciated.
« JR »
justin at linuxjournal.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wp-docs