Hello -

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." (
http://codex.wordpress.org/Codex:Styles#Using_Codes_in_the_Codex)

"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." (
http://codex.wordpress.org/Writing_Code_in_Your_Posts#Code_Within_Paragraphs
)

Any guidance would be much appreciated.

Yours,
« JR »

*Justin Ryan*
Writer/Editor
Office: 713.581.4335
www.justin-ryan.com

*Linux Journal*
Contributing Editor
[email protected]
www.linuxjournal.com
_______________________________________________
wp-docs mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-docs

Reply via email to