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

前端 未结 7 681
闹比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:14

    Semantically speaking, progress does appear to be the right thing to use here. I also posed the question to HTML5 Doctor, and they seemed to agree with that as well. My problem is that progress is very poorly supported across the board at the moment (7/5/11). This make it very hard to use in a practical use case today.

    As a stop gap, I am planning to use the convention of using the new element name as a class name in a standard div element (A.K.A. - A semantic class name). For more details, on this idea: http://jontangerine.com/log/2008/03/preparing-for-html5-with-semantic-class-names

    Here's what my code will look like today. In another year or two, when this element has better support, I'll go back and replace this with real progress tags.

    Question 1 of 10

提交回复
热议问题