Connected: An Internet Encyclopedia
5.7.1.2. Code: CODE

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1866
Up: 5. Document Structure
Up: 5.7. Phrase Markup
Up: 5.7.1. Idiomatic Elements
Prev: 5.7.1.1. Citation: CITE
Next: 5.7.1.3. Emphasis: EM

5.7.1.2. Code: CODE

5.7.1.2. Code: CODE

The <CODE> element indicates an example of code, typically rendered in a mono-spaced font. The <CODE> element is intended for short words or phrases of code; the <PRE> block structuring element (5.5.2, "Preformatted Text: PRE") is more appropriate for multiple-line listings. For example:

      The expression <code>x += 1</code>
      is short for <code>x = x + 1</code>.


Next: 5.7.1.3. Emphasis: EM

Connected: An Internet Encyclopedia
5.7.1.2. Code: CODE