A good usage of HTML5's “progress” or “meter”?

前端 未结 7 696
闹比i
闹比i 2021-01-02 02:38

Say you have a survey with 10 pages (one question per page). At the top of each page, you include the text, \"Question 2 of 10\". Is this kind of a thing a good candidate fo

7条回答
  •  灰色年华
    2021-01-02 03:16

    The tag defines a scalar measurement within a known range or a fractional value. This is also known as a gauge.

    On Google Chrome, the resulting meter looks like this:

    The progress element is used to show the completion progress of a task.

    On Windows 7, the resulting progress looks like this:

    Note: The tag should not be used to indicate progress (as in a progress bar). For progress bars, use the tag.

提交回复
热议问题