When writing in HTML, thetag is an inline element used to represent the result of a user’s action or a calculation. A good example of an output is a computation performed by a script. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example ofcode

0 100 + =

Example result

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 thetag, and a description of each.

Thetag belongs to a group of tags called form elements.

  • Example ofcode
  • Example result
  • Attributes
  • Compatibility
  • Additional form elements
  • Related information

You may adjust the value inside the box by clicking either the up or down arrows on the right side.

Compatibility

Additional form elements