Tag HTML <incorpora>


Esempio

Un'immagine incorporata:

<embed type="image/jpg" src="pic_trulli.jpg" width="300" height="200">

Esempio

Una pagina HTML incorporata:

<embed type="text/html" src="snippet.html" width="500" height="200">

Esempio

Un video incorporato:

<embed type="video/webm" src="video.mp4" width="400" height="300">

Definizione e utilizzo

Il <embed>tag definisce un contenitore per una risorsa esterna, come una pagina Web, un'immagine, un lettore multimediale o un'applicazione plug-in.

Avvertimento

La maggior parte dei browser non supporta più applet e plug-in Java.

I controlli ActiveX non sono più supportati in nessun browser.

Il supporto per Shockwave Flash è stato disattivato anche nei browser moderni.

Suggerimento

Per visualizzare un'immagine, è meglio utilizzare il <img>tag.

Per visualizzare l'HTML, è meglio utilizzare il <iframe>tag.

Per visualizzare video o audio, è meglio utilizzare i tag <video>e .<audio>



Supporto browser

Element
<embed> Yes Yes Yes Yes Yes

Attributi

Attribute Value Description
height pixels Specifies the height of the embedded content
src URL Specifies the address of the external file to embed
type media_type Specifies the media type of the embedded content
width pixels Specifies the width of the embedded content

Attributi globali

Il <embed>tag supporta anche gli attributi globali in HTML .


Attributi dell'evento

Il <embed>tag supporta anche gli attributi dell'evento in HTML .


Pagine correlate

Riferimento HTML DOM: Incorpora oggetto


Impostazioni CSS predefinite

La maggior parte dei browser visualizzerà l' <embed>elemento con i seguenti valori predefiniti:

embed:focus {
  outline: none;
}