HTML5 new tags progress usage

<Progress> tag

Definition and Usage

Progress (process) running <progress> tag definition.

May be used <progress> tag to display the progress of the function in JavaScript time-consuming.

Examples

Mark "download progress":

Download progress object:

<progress>

<span id="objprogress">85</span>%

</progress>

 

<!DOCTYPE HTML>

<html>

<body>

The object's downloading progress:

<progress>

 

<span id="objprogress">76</span>%

</progress>

</body>

</html>
 

HTML  difference between 4.01 and HTML 5
 

<Progress> tag in HTML 5 is the new label.

Tips and Notes

Tip: Use <progress> tag to display the progress of the download.


\
 

max number of defined values ​​is completed.

The current value of the value number defined process.

Standard attributes

<Progress> tag in HTML 5 supports the standard properties.

Event Properties

<Progress> tag also supports the Event Attributes in HTML 5.

Create a front-end learning qun438905713, most in the group are zero-based learners, we help each other, answer each other, and also to prepare a lot of learning materials, welcomed the zero-based junior partner to the exchange.

Published 30 original articles · won praise 19 · views 10000 +

Guess you like

Origin blog.csdn.net/webxuexi168/article/details/104301293