Home » HTML » HTML Output Tag

HTML Output

HTML Output Tag

The <output> tag represents the result of a calculation.

<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title> HTML Output Tag </title>
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
<input type="range" id="a" value="50">100
+<input type="number" id="b" value="50">
=<output name="x" for="a b">


HTML Output Tag
0 100 + =

HTML Output Attribute

Attribute Description
for Defines the relationship between the result of the calculation, and the elements used in the calculation.
form Specifies one or more forms the output element belongs to.
name Define a name for the output element.

Browser Support

Microsoft Edge browser.png Edge
Chrome browser.png Chrome
Firefox browser.png Firefox
Opera browser.png Opera
safari browser.png Safari

Color Picker

List of color names supported by all browser »

Character Code

List of character codes to display special character »

Language Code

List of all language supported by all browser »

Country Code

List of Country code supported by all browser »