html5<output> tag
Translation results:
output
UK[ˈaʊtpʊt] US[ˈaʊtˌpʊt]
n.Output; output; work; [calculation] output signal
vt .output
html5<output> tagsyntax
Function: The <output> tag defines different types of output, such as the output of a script.
Parameters:
Attribute | Value | Description |
for | id of another element | Define one or more elements related to the output domain. |
form | formname | Define one or more forms to which the input fields belong. |
name | unique name | Defines the unique name of the object. (Used when submitting the form) |
html5<output> tagexample
<!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>
Click the "Run instance" button to view the online instance