首頁  >  文章  >  web前端  >  html output標籤怎麼用

html output標籤怎麼用

藏色散人
藏色散人原創
2019-05-27 13:51:032594瀏覽

html output標籤用於定義不同類型的輸出,例如腳本的輸出,標籤是HTML5中的新標籤,nternet Explorer 8以及更早的版本不支援標籤。

html output標籤怎麼用

html output標籤怎麼用?

作用:定義不同類型的輸出,例如腳本的輸出。

說明: 標籤是 HTML 5 中的新標籤。

註解: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標籤怎麼用##

以上是html output標籤怎麼用的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn