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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
---
title: <object>
slug: Web/HTML/Element/object
tags:
- Element
- HTML
- HTML embedded content
- Reference
- Web
translation_of: Web/HTML/Element/object
---
<h2 id="Sumari">Sumari</h2>
<p>L'<em>Element HTML objecte incrustat</em> (<strong><object></strong>) representa un recurs extern, que pot ser entès com una imatge, un context de navegació niada, o un recurs per ser manejat per un complement.</p>
<table class="properties">
<tbody>
<tr>
<th scope="row"><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></th>
<td><a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Contingut dinàmic</a>; <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>; <a href="/en-US/docs/HTML/Content_categories#Embedded_content" title="HTML/Content categories#Embedded content">contingut incrustat</a>, contingut palpable; si l'element té un atribut <strong>usemap</strong>, <a href="/en-US/docs/HTML/Content_categories#Interactive_content" title="HTML/Content categories#Interactive content">contingut interactiu</a>; <a href="/en-US/docs/HTML/Content_categories#Form_listed" title="HTML/Content categories#Form listed">enumerat</a>, element <a href="/en-US/docs/HTML/Content_categories#Form_submittable" title="HTML/Content categories#Form submittable">enviable</a> <a href="/en-US/docs/HTML/Content_categories#Form-associated_content" title="HTML/Content categories#Form-associated content">associat a un formulari</a>.</td>
</tr>
<tr>
<td>Contingut permès</td>
<td>zero o més elements {{HTMLElement("deviceId")}}, llavors <a href="/en-US/docs/HTML/Content_categories#Transparent_content_model" title="HTML/Content_categories#Transparent_content_model">transparent</a>.</td>
</tr>
<tr>
<th scope="row">Omissió de l'etiqueta</th>
<td>{{no_tag_omission}}</td>
</tr>
<tr>
<th scope="row">Elements pares permesos</th>
<td>Qualsevol element que accepti <a href="/en-US/docs/HTML/Content_categories#Embedded_content" title="HTML/Content categories#Embedded content">contingut incrustat</a>.</td>
</tr>
<tr>
<th scope="row">Interfície DOM</th>
<td>{{domxref("HTMLObjectElement")}}</td>
</tr>
</tbody>
</table>
<h2 id="Atributs">Atributs</h2>
<p>Aquest element inclou els<span style="line-height: 21px;"> </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">atributs globals</a><span style="line-height: 21px;">.</span></p>
<dl>
<dt>{{htmlattrdef("archive")}} {{HTMLVersionInline(4)}} only; {{obsoleteGeneric('inline','HTML5')}}</dt>
<dd><span id="result_box" lang="ca"><span>Una</span> <span>llista</span> <span>separada per</span> <span>espais dels</span> <span>URI</span>s <span>d'arxius de</span> <span>recursos</span> <span>per a l'objecte</span><span>.</span></span></dd>
<dt>{{htmlattrdef("border")}} {{deprecatedGeneric('inline','HTML4.01')}}; {{obsoleteGeneric('inline','HTML5')}}</dt>
<dd><span id="result_box" lang="ca"><span>L'ample</span> <span>d'una vora</span> <span>al voltant</span> <span>del control,</span> <span>en píxels</span><span>.</span></span></dd>
<dt>{{htmlattrdef("classid")}} {{HTMLVersionInline(4)}} only; {{obsoleteGeneric('inline','HTML5')}}</dt>
<dd>L'URI de la implementació de l'objecte. Es pot utilitzar juntament amb, o en lloc de, l'atribut <strong>data</strong></dd>
<dt>{{htmlattrdef("codebase")}} {{HTMLVersionInline(4)}} only; {{obsoleteGeneric('inline','HTML5')}}</dt>
<dd>La ruta base utilitzada per resoldre URIs relatius especificats per <strong>classid</strong>, <strong>data</strong> o <strong>archive</strong>. Si no s'especifica, el valor predeterminat és l'URI base del document actual.</dd>
<dt>{{htmlattrdef("codetype")}} {{HTMLVersionInline(4)}} only; {{obsoleteGeneric('inline','HTML5')}}</dt>
<dd><span id="result_box" lang="ca"><span>El tipus</span> <span>de contingut</span> <span>de les dades especificades</span> <span>per</span> <strong><span>classid</span></strong><span>.</span></span></dd>
<dt>{{htmlattrdef("data")}}</dt>
<dd>La direcció del recurs com un URL vàlida. Com a mínim s'han de definir un <strong>data</strong> i <strong>type</strong>.</dd>
<dt>{{htmlattrdef("declare")}} {{HTMLVersionInline(4)}} only; {{obsoleteGeneric('inline','HTML5')}}</dt>
<dd>La presència d'aquest atribut booleà fa que aquest element només sigui una declaració. L'objecte ha de ser instanciat per un element <code><object></code> subsegüent. En HTML5, repetir tot l'element <code><object></code> per cada recurs que es torna a utilitzar.</dd>
<dt>{{htmlattrdef("form")}} {{HTMLVersionInline(5)}}</dt>
<dd>L'element formulari, si existeix, amb el qual està associat l'element object (el seu <em>propietari del formulari</em>). El valor de l'atribut ha de ser un ID d'un element {{HTMLElement("form")}} en el mateix document.</dd>
<dt>{{htmlattrdef("height")}}</dt>
<dd>L'alçada del recurs visualitzat, en píxels CSS.</dd>
<dt>{{htmlattrdef("name")}}</dt>
<dd>El nom del context de navegació vàlid (HTML5), o el nom del control (HTML 4).</dd>
<dt>{{htmlattrdef("standby")}} {{HTMLVersionInline(4)}} only; {{obsoleteGeneric('inline','HTML5')}}</dt>
<dd>Un missatge que el navegador pot mostrar durant la càrrega de la implementació dels objectes i dades.</dd>
<dt>{{htmlattrdef("tabindex")}} {{HTMLVersionInline(4)}} only; {{obsoleteGeneric('inline','HTML5')}}</dt>
<dd>La posició de l'element en l'ordre de navegació de pestanyes del document actual.</dd>
<dt>{{htmlattrdef("type")}}</dt>
<dd>
<p>El <a href="https://developer.mozilla.org/en-US/docs/Glossary/Content_type">tipus de contingut (content type)</a> del recurs especificat per les dades. Com a mínim ha de ser definit un data i type.</p>
</dd>
<dt>{{htmlattrdef("typemustmatch")}} {{HTMLVersionInline(5)}}</dt>
<dd>Aquest atribut booleà indica si han de coincidir el <strong>type</strong> i el recurs de <a href="https://developer.mozilla.org/en-US/docs/Glossary/Content_type">tipus de contingut (content type)</a> real per ordre d'aquest per ser utilitzat.</dd>
<dt>{{htmlattrdef("usemap")}}</dt>
<dd>Una referència a un hash-name a un element {{HTMLElement("map")}}; que és un "#" seguit pel valor d'un {{htmlattrxref("name", "map")}} d'un element map.</dd>
<dt>{{htmlattrdef("width")}}</dt>
<dd>L'amplada del recurs visualitzat, en píxels CSS</dd>
</dl>
<h2 id="Exemples">Exemples</h2>
<h3 id="Incrusta_una_pel·lícula_flash"><span class="short_text" id="result_box" lang="ca"><span>Incrusta</span> <span>una pel·lícula</span> <span>flash</span></span></h3>
<pre class="brush: html"><!-- Embed a flash movie -->
<object data="movie.swf" type="application/x-shockwave-flash"></object>
<!-- Embed a flash movie with parameters -->
<object data="movie.swf" type="application/x-shockwave-flash">
<param name="foo" value="bar">
</object>
</pre>
<h2 id="Specifications" name="Specifications">Especificacions</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Especificació</th>
<th scope="col">Estat</th>
<th scope="col">Comentari</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML WHATWG', 'embedded-content.html#the-object-element', '<object>')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-object-element', '<object>')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML4.01', 'struct/objects.html#h-13.3', '<object>')}}</td>
<td>{{Spec2('HTML4.01')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="Navegadors_compatibles">Navegadors compatibles</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Característica</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari</th>
</tr>
<tr>
<td>Suport bàsic</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatGeckoDesktop("1.0")}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatVersionUnknown}}</td>
</tr>
<tr>
<td><code>typemustmatch</code></td>
<td>{{CompatUnknown}}</td>
<td>{{CompatGeckoDesktop("27")}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Característica</th>
<th>Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Mobile</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Suport bàsic</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatGeckoMobile("1.0")}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatVersionUnknown}}</td>
</tr>
<tr>
<td><code>typemustmatch</code></td>
<td>{{CompatUnknown}}</td>
<td>{{CompatGeckoMobile("27")}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
</tbody>
</table>
</div>
<h2 id="Veure">Veure</h2>
<ul>
<li>{{HTMLElement("param")}}</li>
</ul>
<p>{{HTMLRef}}</p>
|