diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pt-br/web/html/element/datalist | |
parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip |
initial commit
Diffstat (limited to 'files/pt-br/web/html/element/datalist')
-rw-r--r-- | files/pt-br/web/html/element/datalist/index.html | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/files/pt-br/web/html/element/datalist/index.html b/files/pt-br/web/html/element/datalist/index.html new file mode 100644 index 0000000000..0ae859d164 --- /dev/null +++ b/files/pt-br/web/html/element/datalist/index.html @@ -0,0 +1,121 @@ +--- +title: datalist +slug: Web/HTML/Element/datalist +translation_of: Web/HTML/Element/datalist +--- +<h2 id="Sumário">Sumário</h2> + +<p>O elemento HTML <em>Datalist</em> (<span style="font-family: Courier New;"><datalist></span>) contém um conjunto de elementos {{ HTMLElement("option") }} que representam as opções possíveis para o valor de outros controles.</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> ou qualquer quantidade de elementos {{ HTMLElement("option") }} (ou nenhum)</td> + </tr> + <tr> + <td>Omissão de tags</td> + <td>Nenhuma, ambas as tags inicial e final são obrigatórias</td> + </tr> + <tr> + <td>Elementos pais permitidos</td> + <td>Qualquer elemento que aceite <a href="/en/HTML/Content_categories#phrasing_content" title="en/HTML/Content categories#phrasing content">phrasing content</a></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-datalist-element" rel="external nofollow" title="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-datalist-element">HTML5, section 4.10.10</a></td> + </tr> + </tbody> +</table> + +<h2 id="Atributos">Atributos</h2> + +<p>Esse elemento não tem nenhum atributo a não ser os <a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">global attributes</a>, comuns para todos os elementos.</p> + +<h2 class="editable" id="Interface_do_DOM">Interface do DOM</h2> + +<p>Esse elemento implementa a interface <code><a href="/en/DOM/HTMLDataListElement" title="en/DOM/HTMLDataListElement">HTMLDataListElement</a></code>.</p> + +<h2 id="Exemplos">Exemplos</h2> + +<pre class="brush: html notranslate"><input list="browsers" /> +<datalist id="browsers"> + <option value="Chrome"> + <option value="Firefox"> + <option value="Internet Explorer"> + <option value="Opera"> + <option value="Safari"> +</datalist> +</pre> + +<p><a href="/samples/html/datalist.html">View Live Examples</a></p> + +<p>Esse código HTML é renderizado assim no Firefox 4:</p> + +<p><img alt="datalist.png" class="default internal" src="/@api/deki/files/4982/=datalist.png"></p> + +<h2 id="Compatibilidade">Compatibilidade</h2> + +<p>{{ CompatibilityTable() }}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Recurso</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>Suporte básico</td> + <td>20</td> + <td>{{ CompatGeckoDesktop("2.0") }}</td> + <td>10</td> + <td>9.5</td> + <td>{{ CompatNo() }}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Recurso</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Mobile</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Suporte básico</td> + <td>{{ CompatUnknown() }}</td> + <td>{{ CompatGeckoMobile("2.0") }}</td> + <td>{{ CompatUnknown() }}</td> + <td>10</td> + <td>{{ CompatUnknown() }}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="Polyfill">Polyfill</h2> + +<p>Inclua este polyfill para fornecer suporte para navegadores mais antigos e atualmente incompatíveis:<br> + <a href="https://github.com/mfranzke/datalist-polyfill">datalist-polyfill</a></p> + +<h2 id="Veja_também">Veja também</h2> + +<ul> + <li class="last">O elemento {{ HTMLElement("input") }}, especialmente seu atributo {{ htmlattrxref("list", "input") }};</li> + <li class="last">O elemento {{ HTMLElement("option") }}.</li> +</ul> + +<div>{{ languages({ "zh-cn": "zh-cn/HTML/Element/datalist", "ja": "ja/HTML/Element/datalist" }) }}</div> |