What’s New in HTML 5: Inline Semantics continued (Progress)
The progress element has two attributes: min and max. The max attribute can be left out for processes wherein there is really no max value or the max value isn’t known. When using the the progress element you can opt to show the actual value or a percentage of the value. For example when downloading a file you can write it as
<p>Downloaded: <progress value=”204.57″ min=”0″ max=”700″> 204.57MB </progress></p>
<p>Downloaded: <progress value=”204.57″ min=”0″ max=”700″>28.8%</progress></p>
For processes that do not have maximum values you can simply eliminate the max attribute:
<p>You are visitor number: <progress value=”20457″> 20457 </progress></p>
Of course the example given wasn’t really a process but is simply a hit counter. But you get the point.
Next up: Embedded Media Elements