HTML 5: The Markup Language

codecode fragment # T

The code element represents a fragment of computer code.

Content model #

Attribute model #

Tag omission #

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

Permitted contexts #

Typical default display properties #

code {
font-family: monospace; }