blob: 0de6b73d800287457c92ed1602437f7cb129eafb (
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
|
---
title: <details>
slug: Web/HTML/Element/details
tags:
- Elemento
- Elementos HTML interactivos
- HTML
- HTML5
- Referencia
- Web
translation_of: Web/HTML/Element/details
original_slug: Web/HTML/Elemento/details
---
<p>{{ SeeCompatTable() }}</p>
<h2 id="Resumen">Resumen</h2>
<p>El elemento HTML Details<strong> <details> </strong>es usado como un widget de revelación a través del cual el usuario puede obtener información adicional .</p>
<table class="properties">
<tbody>
<tr>
<th scope="row"><a href="/es/docs/Web/Guide/HTML/categorias_de_contenido">Categorías de contenido</a></th>
<td><a href="/es/docs/Web/Guide/HTML/categorias_de_contenido">Contenido dinámico</a> , contenido de seccionamiento, contenido interactivo, contenido palpable .</td>
</tr>
<tr>
<th scope="row">Contenido permitido</th>
<td>Un elemento {{HTMLElement("summary")}} seguido de <a href="/es/docs/Web/Guide/HTML/categorias_de_contenido">contenido dinámico</a> </td>
</tr>
<tr>
<th scope="row">Omisión de etiquetas</th>
<td>{{no_tag_omission}}</td>
</tr>
<tr>
<th scope="row">Elementos padres permitidos</th>
<td>Cualquier elemento que acepte <a href="/es/docs/Web/Guide/HTML/categorias_de_contenido">contenido dinámico</a>.</td>
</tr>
<tr>
<th scope="row">Interfaz DOM</th>
<td>{{domxref("HTMLDetailsElement")}}</td>
</tr>
</tbody>
</table>
<h2 id="Atributos">Atributos</h2>
<p>Este elemento incluye los <a href="/es/docs/Web/HTML/Atributos_Globales">atributos globales</a> .</p>
<dl>
<dt>{{htmlattrdef("open")}}</dt>
<dd>Este atributo Booleano indica si los detalles serán mostrados al usuario cuando la página se cargue . Por default el valor es <code>false </code>y por lo tanto los detalles estarán ocultos.</dd>
<dd></dd>
</dl>
<h2 id="Ejemplo">Ejemplo</h2>
<pre class="brush: html"><details>
<summary>Some details</summary>
<p>More info about the details.</p>
</details>
</pre>
<h3 id="Resultado">Resultado</h3>
<p>{{EmbedLiveSample("Example")}}</p>
<div class="note">
<p><strong>Nota:</strong> Si el el ejemplo de arriba no funciona , ver {{anch("Compatibilidad con navegadores")}} para determinar si el navegador soporta esta característica .</p>
</div>
<h2 id="Specifications" name="Specifications">Especificaciones</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Especificaciones</th>
<th scope="col">Estatus</th>
<th scope="col">Comentario</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML WHATWG', 'interactive-elements.html#the-details-element', '<details>')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td></td>
</tr>
<tr>
<td>{{SpecName('HTML5.1', 'semantics.html#the-details-element', '<details>')}}</td>
<td>{{Spec2('HTML5.1')}}</td>
<td></td>
</tr>
</tbody>
</table>
<h2 id="Compatibilidad_con_navegadores">Compatibilidad con navegadores</h2>
{{Compat("html.elements.details")}}
<h2 id="sect1"></h2>
<h2 id="Ver_también">Ver también</h2>
<ul>
<li>{{HTMLElement("summary")}}</li>
</ul>
<div>{{HTMLRef}}</div>
|