CODE - Code fragments

Appearance: <CODE> </CODE>
Attributes: None.
Contents: TT, I, B, U, STRIKE, BIG, SMALL, SUP, SUB, EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, A, IMG, FONT, APPLET, BR, SCRIPT, MAP, INPUT, SELECT, TEXTAREA and plain text.
May occur in: BODY, H1, H2, H3, H4, H5, H6, P, LI, DT, DD, DIV, CENTER, BLOCKQUOTE, FORM, TD, TH, PRE, ADDRESS as well as TT, I, B, U, STRIKE, BIG, SMALL, SUP, SUB, EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, A, IMG, FONT, APPLET, BR, SCRIPT, MAP, INPUT, SELECT, TEXTAREA and plain text.

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.

Notes:


Web Design Group
Reference index ~ Wilbur index ~ Tag overview ~ Feedback

Copyright © 1996 Arnoud "Galactus" Engelfriet.