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 »

Latest Updates

PHP Introduction

How to Run a PHP program in Xampp?

How can I create a phpinfo.php page?

How to Define a Variable in PHP

PHP Echo and Print Statements

Working with PHP Operators

Understanding the PHP Data Types

How to Write Comments in PHP

How to Define a Constant in PHP

PHP if...else...elseif Statements