It is used to represent the result of a calculation or the result of a user action.
Like all form elements, it has two attributes: name
to indicate its name and form
to indicate the form to which it is associated, and whose value will be the id
of a <form>
of the document.
It has a third for
attribute that consists of a space separated list with the id
of the form elements that contribute or affect the output displayed in <output>
.
Regarding accessibility, many browsers implement this element as an aria-live
region. Therefore, assistive technology will announce changes to the value displayed in <output>
without removing the focus from the form element that caused the change.
- Type: inline
- Self-closing: No
- Semantic value: No
Top comments (0)