s72
  • Progress and meter

    progress

    <progress> shows how far a task has run. <meter> shows where a value sits in a range, and colours itself from low, high and optimum.

    Basic

    html
    <div data-grid="2">
      <label data-field><span>Indexing</span><progress value="62" max="100">62%</progress><small>62% of 4,210 pages</small></label>
      <label data-field><span>Disk used</span><meter value=".82" low=".6" high=".8" optimum=".2">82%</meter><small>82% of the build cache</small></label>
    </div>

    The text inside the element is the fallback a browser without support shows, so write the number there.

    Notes