html <output> 标签
实例
如何在表单中使用 output 元素:
<form action="form_action.asp" method="get" name="sumform"> <output name="sum"></output> </form>
亲自试一试
浏览器支持
firefox, chrome, safari 以及 opera 支持 <output> 标签。
注释:internet explorer 8 以及更早的版本不支持 <output> 标签。
定义和用法
<output> 标签定义不同类型的输出,比如脚本的输出。
html 4.01 与 html 5 之间的差异
<output> 标签是 html 5 中的新标签。
属性
| for | id of another element | 定义输出域相关的一个或多个元素。 |
| form | formname | 定义输入字段所属的一个或多个表单。 |
| name | unique name | 定义对象的唯一名称。(表单提交时使用) |
全局属性
<output> 标签支持 html 中的全局属性。
事件属性
<output> 标签支持 html 中的事件属性。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!