| Version | //IETF//DTD HTML 2.0 Strict//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 | | Name | Type | Default | Comment |
|---|
| SDAFORM | CDATA | #FIXED "Lit" | one to one mapping; in support of transformation to the International Committee for Accessible Document Design DTD for usable access to structured information by print-impaired individuals
|
|
|---|
| Content | ( #PCDATA | A | IMG | BR | EM | STRONG | CODE | SAMP | KBD | VAR | CITE | TT | B | I #PCDATA | A | IMG | BR )*
|
|---|
| End tag | Required </CODE>
|
|---|
| Referenced in | A ADDRESS B CITE CODE DD DT EM H1 H2 H3 H4 H5 H6 I KBD LI P PRE SAMP
STRONG TT 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[])
|
|
|---|