MDN self-hosted library · e01.org
ARIA: meter role / notebook

ARIA: meter role

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<div role="meter"><h3>Title of my meter</h3></div>
html
<div role="meter"><h3 role="presentation">Title of my meter</h3></div>
html
<div role="meter">Title of my meter</div>
html
<div
  role="meter"
  aria-valuenow="90"
  aria-valuemin="0"
  aria-valuemax="100"
  aria-labelledby="cpu_usage_label">
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" style="width: 90%">
    <rect x="0" y="0" width="100%" height="100%" fill="currentColor"></rect>
  </svg>
</div>