HTML:-output tag

<!DOCTYPE html> 

<html> 

 

<head> 

 <meta name="viewport" content="width=device-width, initial-scale=1"> 

 <title>output</title> 

</head> 

 

<body> 

 

 <input type="range" value="3" oninput="OP1.value=this.value;"> 

 

 <output id="OP1">3</output> 

 

</body> 

 

</html>


  • range is used to create slider like increasing/decrease volume controller.
  • <output> tag represents the result of a calculation (like one performed by a script).
  • We can also show instant output, like this example.
HTML:-output tag HTML:-output tag Reviewed by Network security on April 30, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.