HTML Level 1 and 2 Manual

Home | Element Index | Forms | Screens & Colours | GIFs | Layout | Compatibility


Element Index > Text Blocks

<LISTING> Element

Category: Text Blocks
Period: HTML 1 / HTML 2.0
Status: core

Description

Shows program listings or literal text with a fixed-width rendering.

Syntax

<LISTING>
10 PRINT "HELLO"
</LISTING>

Attributes

None.

Usage Guidelines

Common Mistakes

Example Code

<LISTING>
10 PRINT "HELLO"
20 GOTO 10
</LISTING>

Authoring Note

Write the document first, then test it in a graphical browser and a text browser. The page should remain understandable if images fail, colours are ignored, or the browser uses its own fonts.


Top | Home | All Elements

HTML Level 1 and 2 Manual.