
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <LINK>
| Next Tag: <MAP>
|
<LISTING>
Marks text as the output (listing) from a program or script.
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
1.0 and later |
Not supported |
Notes:
- This tag is obsolete and was removed from HTML 4.0. Use the <PRE> tag, instead.
- This tag requires the </LISTING> end tag.
- The marked text is usually rendered on a new line in a smaller, fixed-width font.
Attributes:
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
3.0 and later |
4.0 and later |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
3.0 and later |
4.0 and later |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- LANG
= "Text"
The language used by the tag's attribute values and text content.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- STYLE
= "Text"
The style or styles to use with the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
3.0 and later |
4.0 and later |
Notes:
-
If you enter multiple style properties, separate each one with a semi-colon (;).
Example:
I entered the JavaScript code, but when I reload the page,
I get the followed error:
<LISTING>
JavaScript Error, Line 6
Object Expected
</LISTING>
How It Looks:
- I entered the JavaScript code, but when I reload the page,
I get the followed error:
JavaScript Error, Line 6
Object Expected
| Index
| Previous Tag: <LINK>
| Next Tag: <MAP>
|
|