When writing HTML, the tag is an inline element used to indicate that a section of text was inserted into a web page. It’s often used in conjunction with the tag. The following sections contain information about the tag, including examples of how it is used and related attributes and browser compatibility.

Example of code

My favorite food is spaghetti pizza.

Example result

My favorite food is spaghetti pizza.

  • Example of code
  • Example result
  • Attributes
  • Compatibility
  • 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; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the tag, and a description of each.

Compatibility

Block of text, Browser, Compatibility, Container tag, CSS, URL, Web design terms

  • HTML and web design help and support.