--- title: <embed> slug: Web/HTML/Element/embed tags: - Element - HTML - HTML embedded content - HTML5 - Reference - Web translation_of: Web/HTML/Element/embed --- <h2 id="Sumari">Sumari</h2> <p>L'<strong>Element HTML <code><embed></code></strong> representa un punt d'integració per a una aplicació externa o contingut interactiu (en altres paraules, un plug-in).</p> <div class="note"> <p>Nota ("Aquest tema només documenta l'element que es defineix com a part d'HTML5. No es refereix a una implementació anterior, no estandarditzada de l'element.")</p> </div> <table class="properties"> <tbody> <tr> <th scope="row"><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Categories de contingut</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>, contingut incrustat, contingut interactiu, contingut palpable.</td> </tr> <tr> <th scope="row">Contingut permès</th> <td>Cap, és un {{Glossary("empty element")}}.</td> </tr> <tr> <th scope="row">Omissió de l'etiqueta</th> <td><span id="result_box" lang="ca"><span>Ha de tenir una</span> <span>etiqueta</span> <span>d'inici,</span> <span>i</span> <span>no ha de tenir</span> <span>una etiqueta</span> <span>de tancament</span></span>.</td> </tr> <tr> <th scope="row">Elements pares permesos</th> <td>Qualsevol element que accepti contingut incrustat.</td> </tr> <tr> <th scope="row">Interfície DOM</th> <td>{{domxref("HTMLEmbedElement")}}</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("height")}}</dt> <dd><span id="result_box" lang="ca"><span>L'alçada</span> <span>mostrada</span> <span>del recurs,</span> <span>en píxels</span> <span>CSS.</span></span></dd> <dt>{{htmlattrdef("src")}}</dt> <dd><span id="result_box" lang="ca"><span>L'adreça URL</span> <span>del recurs</span> <span>que s'ha</span> <span>incrusta</span><span>.</span></span></dd> <dt>{{htmlattrdef("type")}}</dt> <dd>El tipus MIME a utilitzar per seleccionar el plug-in per crear una instància.</dd> <dt>{{htmlattrdef("width")}}</dt> <dd><span id="result_box" lang="ca"><span>L'amplada</span> <span>mostrada</span> <span>del recurs,</span> <span>en píxels</span> <span>CSS.</span></span></dd> </dl> <h2 id="Exemples">Exemples</h2> <pre class="brush: html"><embed type="video/quicktime" src="movie.mov" width="640" height="480"> </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', 'the-iframe-element.html#the-embed-element', '<embed>')}}</td> <td>{{Spec2('HTML WHATWG')}}</td> <td> </td> </tr> <tr> <td>{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-embed-element', '<embed>')}}</td> <td>{{Spec2('HTML5 W3C')}}</td> <td> </td> </tr> </tbody> </table> <h2 id="Navegadors_compatibles">Navegadors compatibles</h2> <div class="note"> <p><strong>Nota</strong>: Actualment existeix una diferència d'implementació entre els navegadors. Mentre Blink (Chrome, Opera) mostrarà el contingut del recurs HTML, Firefox mostrarà un missatge genèric dient que el contingut necessita un plug-in (veure {{Bug ("730.768")}}). Es recomana utilitzar l'element <object> o <iframe></p> </div> <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> </tbody> </table> </div> <h2 id="Veure">Veure</h2> <ul> <li>Altres elements que s'utilitzen per incrustar continguts de diversos tipus, inclouen {{HTMLElement("audio")}}, {{HTMLElement("canvas")}}, {{HTMLElement("iframe")}}, {{HTMLElement("img")}}, {{MathMLElement("math")}}, {{HTMLElement("object")}}, {{SVGElement("svg")}}, and {{HTMLElement("video")}}.</li> </ul> <p>{{ HTMLRef }}</p>