This element is also available in our updated HTML 4 reference. Some characteristics may have changed.
|Contents:||TT, I, B, U, STRIKE, BIG, SMALL, SUB, SUP, EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, A, APPLET, IMG, FONT, BASEFONT, BR, MAP, INPUT, SELECT, TEXTAREA and plain text.
|May occur in:||BODY, DIV, CENTER, BLOCKQUOTE, FORM, TH, TD, DT, DD, LI, P, H1, H2, H3, H4, H5, H6, PRE, ADDRESS, TT, I, B, U, STRIKE, BIG, SMALL, SUB, SUP, EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, FONT, A, APPLET, CAPTION.
CODE is used for snippets of code which appear inside a paragraph of
text. It is usually rendered in a monospaced font. You can use this
tag to mark up things like
<CODE>for ( ; ; ) ;</CODE>
is a nice way to make an endless loop in C.
For larger blocks of code, use PRE instead. If what you are marking up is what a user should type in, use KBD.
HTML 3.2 Reference ~ Elements by Function ~ Elements Alphabetically
Home, Forums, Reference, Tools, FAQs, Articles, Design, Links
Copyright © 1996 - 2006. All rights reserved.