Home  >  Article  >  Web Front-end  >  How to use html output tag

How to use html output tag

藏色散人
藏色散人Original
2019-05-27 13:51:032637browse

html The output tag is used to define different types of output, such as the output of a script. The tag is a new tag in HTML5. Internet Explorer 8 and earlier versions do not support the tag.

How to use html output tag

#html How to use the output tag?

Function: Define different types of output, such as script output.

Description: The tag is a new tag in HTML 5.

Note: Internet Explorer 8 and earlier versions do not support the tag.

html output tag example

<!DOCTYPE html>
<html>
<body>
<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"></output>
</form>
<p><b>注释:</b>Internet Explorer 不支持 output 标签。</p>
</body>
</html>

Effect:

How to use html output tag

The above is the detailed content of How to use html output tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn