december.com
/
html
|
Tutor
·
Demo
·
Specs
·
Techs
·
Books
|
search
Version
W3C//DTD HTML 3.2 Final//EN
Element
CODE
Purpose
source (computer) code
Description
This element encloses source text of of computer programs. Note that this does not create or preserve line breaks in this enclosed text. If you need linebreaks preserved, use
PRE
.
Start tag
Required <CODE>
Attributes
NONE
Content
(
#PCDATA
|
TT
|
I
|
B
|
U
|
STRIKE
|
BIG
|
SMALL
|
SUB
|
SUP
|
EM
|
STRONG
|
DFN
|
CODE
|
SAMP
|
KBD
|
VAR
|
CITE
|
A
|
IMG
|
APPLET
|
FONT
|
BASEFONT
|
BR
|
SCRIPT
|
MAP
|
INPUT
|
SELECT
|
TEXTAREA
)*
End tag
Required </CODE>
Referenced in
A
ADDRESS
APPLET
B
BIG
BLOCKQUOTE
BODY
CAPTION
CENTER
CITE
CODE
DD
DFN
DIV
DT
EM
FONT
FORM
H1
H2
H3
H4
H5
H6
I
KBD
LI
P
PRE
SAMP
SMALL
STRIKE
STRONG
SUB
SUP
TD
TH
TT
U
VAR
Example
Source
Appearance
Open the Java application with the line <CODE>public static void main (String args[])</CODE>
Open the Java application with the line
public static void main (String args[])
Bookmark
·
Search
·
Market
2008-07-15 ·
John December
·
Contact
·
Terms of Use
©
December Communications, Inc.