html output标签用于定义不同类型的输出,比如脚本的输出,
html output标签怎么用?
作用:定义不同类型的输出,比如脚本的输出。
说明:
注释:nternet Explorer 8 以及更早的版本不支持
立即学习“前端免费学习笔记(深入)”;
html output标签 示例
<!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>
效果:
以上就是html output标签怎么用的详细内容,更多请关注php中文网其它相关文章!
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号