<CODE>
The CODE tag is used to define a fragment of computer code
which is rendered in a fixed-width (mono-spaced) font for easy
reading.
You should not use this tag when creating multiple lines of code
since the carriage return is not rendered as a line-break in the
web page. You can use the preformatted text tag (PRE) instead.
Attributes
Attribute |
Description |
ID |
Identifies this tag to reference in script (program code) |
CLASS |
Define the class used to render this element (defined by a style sheet) |
TITLE |
A title that is associated with the element (displayed as a tooltip in Internet Explorer) |
|
Example
<CODE>print "Hello World!"</CODE>
Renders As:
print "Hello World!"
Compatibility
HTML 4.01
|