jump

HTML: The Markup Language (an HTML language reference)

outputresult of a calculation in a form NEW # T

The output element represents the result of a calculation.

Permitted contents #

Permitted attributes #

global attributes
Any attributes permitted globally.
name = string #
The name part of the name/value pair associated with this element for the purposes of form submission.
form = ID reference NEW #
The value of the id attribute on the form with which to associate the element.
for = list of ID references #
Identifies one or more elements associated with the calculation whose result this output element represents.

Tag omission #

An output element must have both a start tag and an end tag.

Permitted parent elements #

any element that can contain phrasing elements

DOM interface #

interface HTMLOutputElement : HTMLElement {
  [PutForwards=value] readonly attribute DOMSettableTokenList htmlFor;
  readonly attribute HTMLFormElement? form;
           attribute DOMString name;

  readonly attribute DOMString type;
           attribute DOMString defaultValue;
           attribute DOMString value;

  readonly attribute boolean willValidate;
  readonly attribute ValidityState validity;
  readonly attribute DOMString validationMessage;
  boolean checkValidity();
  void setCustomValidity(DOMString error);

  readonly attribute NodeList labels;
};

Typical default display properties #

output {
display: inline; }
output {
unicode-bidi: -webkit-isolate; }