jump

HTML: The Markup Language

codecode fragment # T

The code element represents a fragment of computer code.

Permitted contents #

Permitted attributes #

global attributes
Any attributes permitted globally.

Tag omission #

A code element must have both a start tag and an end tag.

Permitted parent elements #

any element that can contain phrasing elements

DOM interface #

Uses HTMLElement.

Typical default display properties #

code {
font-family: monospace; }