blob: 0b99ea2873f7ecdefde3fe723e18433d191bfaf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
---
title: progress
slug: Web/HTML/Elemento/progress
translation_of: Web/HTML/Element/progress
---
<h2 id="Resumo">Resumo</h2>
<p>O HTML <em>progress</em> (<code><progress></code>) é o elemento usado para mostrar o progresso de uma tarefa. Enquanto os detalhes específicos de como ele é exibido é deixado para o desenvolvedor web, é tipicamente exibido como uma barra de progresso.</p>
<h2 id="Contexto_de_uso">Contexto de uso</h2>
<table class="standard-table">
<tbody>
<tr>
<td>Conteúdo permitido</td>
<td><a href="/en/HTML/Content_categories#Phrasing_content" title="en/HTML/Content categories#Phrasing content">Phrasing content</a></td>
</tr>
<tr>
<td>Tag omission</td>
<td>None, both, o inicio da tag e o final da tag são obrigatórios.</td>
</tr>
<tr>
<td>Elemento pai permitido</td>
<td><a href="/en/HTML/Content_categories#Phrasing_content" title="en/HTML/Content categories#Phrasing content">Phrasing content</a>, mas não deve haver descedentes no elemento progress .</td>
</tr>
<tr>
<td>Documento normativo</td>
<td><a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-progress-element" rel="external nofollow" title="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-progress-element">HTML5, section 4.10.16</a></td>
</tr>
</tbody>
</table>
<h2 id="Atributos">Atributos</h2>
<p>Como todos os outros elementos HTML, este elemento possui os <a href="/en/HTML/Global_attributes" rel="internal">atributos globais</a>.</p>
<dl>
<dt>{{ htmlattrdef("form") }}</dt>
<dd>This attribute specifies the form which the <code>progress</code> element belongs to.</dd>
<dt>{{ htmlattrdef("max") }}</dt>
<dd>This attribute describes how much work the task indicated by the <code>progress</code> element requires.</dd>
<dt>{{ htmlattrdef("value") }}</dt>
<dd>This attribute specifies how much of the task that has been completed. If there is no <code>value</code> attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.</dd>
</dl>
<p>You can use the {{ cssxref("orient") }} property to specify whether the progress bar should be rendered horizontally (the default) or vertically. The {{ cssxref(":indeterminate") }} pseudo-class can be used to match against indeterminate progress bars.</p>
<h2 id="DOM_interface">DOM interface</h2>
<p>Este elemento implementa a interface <code><a href="/en/DOM/HTMLProgressElement" title="en/DOM/HTMLProgressElement">HTMLProgressElement</a></code>.</p>
<h2 id="Exemplos">Exemplos</h2>
<pre class="script"><progress value="70" max="100">70 %</progress>
</pre>
<h3 id="Resultado">Resultado</h3>
<p><a href="/samples/html/progress.html">View Live Examples</a></p>
<p>No Google Chrome, o resultado do progress parece deste modo:</p>
<p><img alt="progress-1.png" class="default internal" src="/@api/deki/files/4946/=progress-1.png"></p>
<h3 id="Exemplos_Adicionais">Exemplos Adicionais</h3>
<p>Veja {{ cssxref("orient") }}.</p>
<h2 id="Compatibilidade_dos_Browsers">Compatibilidade dos Browsers</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Características</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari</th>
</tr>
<tr>
<td>Basic support</td>
<td>6.0</td>
<td>{{ CompatGeckoDesktop("6.0") }}</td>
<td>No</td>
<td>11</td>
<td>nightlies</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Características</th>
<th>Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Mobile</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
<td>{{ CompatUnknown() }}</td>
<td>{{ CompatUnknown() }}</td>
<td>{{ CompatUnknown() }}</td>
<td>{{ CompatUnknown() }}</td>
<td>{{ CompatUnknown() }}</td>
</tr>
</tbody>
</table>
</div>
<h3 id="Gecko_notes">Gecko notes</h3>
<p>Gecko provides the {{ cssxref("::-moz-progress-bar") }} pseudo-element, which lets you style the part of the interior of the progress bar representing the amount of work completed so far.</p>
<h2 id="Veja_também">Veja também</h2>
<ul>
<li>{{ cssxref("orient") }}</li>
<li>{{ cssxref(":indeterminate") }}</li>
</ul>
|