Consider this list of HTML elements. <ol> <li>div</li> <li>p</li> <li>object</li> </ol> Code (markup): Alone the contents of those list items are meaningless, they're not really acronyms of anything either. For semantics, what should I wrap those HTML elements with to give them meaning ? I'm thinking the <abbr> or abbreviation element, but I'm not sure. <ol> <li><abbr>div</abbr></li> </ol> Code (markup): // Edit Oh duh. <code> element !
Going to stick with just <code>. Since there's no formatting in this scenario there's no need for the <pre> element.
The CODE element would work, but how are you presenting these elements? Are you attempting to define them, or just list them?
Just listing them. Along these lines. <p>The following elements & their contents are removed.</p> <ul> <li><code>code</code></li> <li><code>blockquote</code></li> <li><code>form</code></li> </ul> Code (markup):
I could see that working best with an unordered list (since the list items are not defining anything or being displayed in any particular sequential order). However, if you really want to use the CODE element, provide examples of what the HTML code looks like alongside the listing. Like this: <li>BLOCKQUOTE <code><blockquote> </blockquote></code></li> Code (markup):
Have you considered using <samp> (defines sample computer code)? Perhaps more semantically correct than <code> <li><samp><code></samp></li> Code (markup):
I like that Dan. I'm going to reduce it to account for a bit of assumed understanding by the reader in this case though. <li><code><blockquote /></code></li> Code (markup): JagNet, I believe <samp> denotes sample output. If I were going to provide an sample of what the preceding code would display, I think it would be perfect.
joebert, never leave things to chance - you might find a first-time reader who doesn't know what they are on the site; not to mention screen reader users (another reason why I suggested the example I gave you).