The HTML tag is an inline HTML element used to designate that a section of text is computer code. The following sections contain information about this tag, including an example of it in use, and related attributes, browser compatibility.

Example of

The first part of this sentence is normal text,
and the second is formatted with the <code> tag.

Example result

The first part of this sentence is normal text, and the second is formatted with the tag.

This element is unique in that it is a phrase tag, which indicates that a section of text has structural meaning.

  • Example of
  • Example result
  • Attributes
  • Compatibility
  • Additional phrase tags
  • Related information

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the tag does not have any unique attributes, it does utilize all of the standard attributes.

Compatibility

Additional phrase tags

Browser, Code, Compatibility, Container tag, Web design terms

  • HTML and web design help and support.