علامة <متر> HTML


مثال

استخدم عنصر العداد لقياس البيانات ضمن نطاق معين (مقياس):

<label for="disk_c">Disk usage C:</label>
<meter id="disk_c" value="2" min="0" max="10">2 out of 10</meter><br>

<label for="disk_d">Disk usage D:</label>
<meter id="disk_d" value="0.6">60%</meter>

التعريف والاستخدام

تحدد العلامة <meter>قياسًا قياسيًا ضمن نطاق معروف ، أو قيمة كسرية. يُعرف هذا أيضًا باسم المقياس.

أمثلة: استخدام القرص ، ومدى صلة نتيجة الاستعلام ، وما إلى ذلك.

ملاحظة: يجب <meter>عدم استخدام العلامة للإشارة إلى التقدم (كما هو الحال في شريط التقدم). لأشرطة التقدم ، استخدم علامة <progress> .

نصيحة: أضف دائمًا علامة <label> للتمتع بأفضل ممارسات إمكانية الوصول!


دعم المتصفح

تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم العنصر بشكل كامل.

Element
<meter> 8.0 13.0 16.0 6.0 11.5


صفات

Attribute Value Description
form form_id Specifies which form the <meter> element belongs to
high number Specifies the range that is considered to be a high value
low number Specifies the range that is considered to be a low value
max number Specifies the maximum value of the range
min number Specifies the minimum value of the range. Default value is 0
optimum number Specifies what value is the optimal value for the gauge
value number Required. Specifies the current value of the gauge

السمات العالمية

تدعم <meter>العلامة أيضًا السمات العامة في HTML .


سمات الحدث

تدعم <meter>العلامة أيضًا سمات الحدث في HTML .


الصفحات ذات الصلة

مرجع DOM HTML: كائن متر


إعدادات CSS الافتراضية

لا أحد.