HTML Level 1 and 2 Manual

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


Element Index > Phrase Markup

<CODE> Element

Category: Phrase Markup
Period: HTML 2.0
Status: core

Description

Marks computer code in running text.

Syntax

<CODE>print("hello")</CODE>

Attributes

None.

Usage Guidelines

Common Mistakes

Example Code

<P>The <CODE>HREF</CODE> attribute gives the link target.

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.