HTML <listing> Tag

❮ Previous Reference Next ❯

Deprecated: Not Supported in HTML5.

Example

<listing>
  This is a code listing. The preformatted text element <pre> should be used instead of this deprecated element.
</listing>

Meaning

Specifies a code listing; it is no longer part of the HTML standard.

Text tends to be rendered in a smaller size within this element. A <pre> tag should be used instead of this element.

Note: This deprecated element from HTML 2.

Version: HTML 2




Standard Syntax

<listing>...</listing>



Browser Support

Note: Only supported by Firefox 1+, Internet Explorer 2+, Netscape 1+, Opera 6+, Safari 1+




Status







Global Attributes

<listing> element also supports the Global Attributes in HTML.


Event Attributes

<listing> element also supports the Event Attributes in HTML.




❮ Previous Reference Next ❯