When writing in HTML, the tag, also known as the HTML definition element, is an inline element used to represent the defining instance of a term. This tag has an order of operations of sorts; detailed below. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

Computer Hope is a computer help website.

Example result

Computer Hope is a computer help website.

The tag marks the term as being defined, but the actual definition should be given by the surrounding

element or definition list group.

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

  • Example of code
  • Example result
  • Attributes
  • Additional notes on the usage of the tag
  • 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.

Additional notes on the usage of the tag

The exact value of the term being defined changes based on the following situations:

  • If the tag has a title attribute, then that its definition is the value of that attribute.
  • If has an tag with a title attribute, then that its definition is the value of that attribute.
  • If doesn’t have either, the text inside its tags is the definition.

Compatibility

Additional phrase tags

Browser, Compatibility, Container tag, Web design terms

  • HTML and web design help and support.