English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Manual de Referência HTML

Catálogo de etiquetas HTML

Atributo open no HTML

Este artigo introduce o atributo open no HTML, um atributo booleano, demonstrando como usar o atributo open no HTML, compatibilidade do navegador, definição sintática e detalhes dos valores do atributo.

 HTML <details> tag

Exemplo online

um aberto/Elemento <detalhes> visível:

<!DOCTYPE html>
<html>
<cabeçalho>
<meta charset="utf-8">
<título>Uso do atributo open no HTML <detalhes> abertos-Tutorial Básico(oldtoolbag.com)</título>
</cabeçalho>
<corpo>
<detalhes abertos>
  <resumo>Direitos Autorais 2009-2020.</resumo>
  <p> - por oldtoolbag.com. Todos os Direitos Reservados.</p>
  <p>Basic tutorial website provides you with IT basic tutorial learning resources, as well as basic knowledge. Learn the basics, and you can go further.</p>
</details>
<p>details Default open.</p>
</body>
</html>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

Currently only Chrome and Safari 6Supports the open attribute.

Definition and usage

The open attribute is a boolean (boolean) attribute.

The open attribute specifies that the details should be visible on the HTML page.

HTML 4.01 with HTML5differences

<details> tag is HTML5 New tags.

Differences between HTML and XHTML

In XHTML, attributes are not allowed to be abbreviated, the open attribute must be defined as: <details open="open">.

Syntax

<details open>

 HTML <details> tag