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 is more appropriate
for multiple-line listings. For example:
<p>The expression <code>x += 1</code>
is short for <code>x = x + 1</code>.
Content
- #PCDATA
- a -- Anchor; source and/or destination of a link
- b -- Bold text
- br -- Line break
- cite -- Name or title of cited work
- code -- Source code phrase
- em -- Emphasized phrase
- i -- Italic text
- img -- Image; icon, glyph or illustration
- kbd -- Keyboard phrase, e.g. user input
- samp -- Sample text or characters
- strong -- Strong emphasis
- tt -- Typewriter text
- var -- Variable phrase or substitutable
ATTRIBUTES
CONTENT DECLARATION
- Tag Minimization
-
Open Tag: REQUIRED
Close Tag: REQUIRED
Parent Elements
- a -- Anchor; source and/or destination of a link
- address -- Address, signature, or byline for document or passage
- b -- Bold text
- blockquote -- Quoted passage
- body -- Document body
- cite -- Name or title of cited work
- code -- Source code phrase
- dd -- Definition of term
- dt -- Term in definition list
- em -- Emphasized phrase
- form -- Fill-out or data-entry form
- h1 -- Heading, level 1
- h2 -- Heading, level 2
- h3 -- Heading, level 3
- h4 -- Heading, level 4
- h5 -- Heading, level 5
- h6 -- Heading, level 6
- i -- Italic text
- kbd -- Keyboard phrase, e.g. user input
- li -- List item
- p -- Paragraph
- pre -- Preformatted text
- samp -- Sample text or characters
- strong -- Strong emphasis
- tt -- Typewriter text
- var -- Variable phrase or substitutable
Top Elements
All Elements
General Entities
Tree
HTML 2.0 DTD