html meter标签使用教程

html meter标签使用教程

今天小编就为大家带来一篇html meter标签使用教程的文章。小编觉得挺不错的,为此分享给大家做个参考。一起跟随小编过来看看吧。

html meter标签用于定义已知范围或分数值内的标量测量,<meter>标签不应用于指示进度(在进度条中)。如果标记进度条,请使用<progress>标签。

html meter标签使用教程

html meter标签怎么用?

作用:定义已知范围或分数值内的标量测量。

说明:<meter> 标签不应用于指示进度(在进度条中)。如果标记进度条,请使用 <progress> 标签。

注释:<meter> 标签是 HTML 5 中的新标签。

html meter标签使用示例

<!DOCTYPE html>
<html>
<body>
<p>显示度量值:</p>
<meter value="3" min="0" max="10">3/10</meter><br>
<meter value="0.6">60%</meter>
<p><b>注释:</b>Internet Explorer 不支持 meter 标签。</p>
</body>
</html>

效果:

html meter标签使用教程

以上就是使用html meter标签的方法介绍,详细使用情况还得要大家自己使用过才能知道具体要领。如果想了解更多相关内容,欢迎关注行业资讯频道!