HTML <progress> max属性

❮HTML<progress>タグ

プログレスバーを表示する:

<label for="file">Downloading progress:</label>
<progress id="file" value="32" max="100"> 32% </progress>

定義と使用法

このmax属性は、タスクに必要な作業の合計を指定します。


ブラウザのサポート

表の数字は、属性を完全にサポートする最初のブラウザーバージョンを示しています。

Attribute
max 8.0 10.0 16.0 6.0 11.0

構文

<progress max="number">

属性値

Value Description
number A floating point number that specifies how much work the task requires in total before it can be considered complete. Default value is 1.

❮HTML<progress>タグ