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의 이벤트 속성 도 지원합니다 .


관련 페이지

HTML DOM 참조: 측정기 개체


기본 CSS 설정

없음.