/    Sign up×
Reference /Pin to ProfileBookmark

The embed tag, or Embed External Content element, defines a container for an external resource, like a video, picture, web page, etc.

Syntax

Use the various attributes to designate the dimensions and ingredients of the container.

Note: it is better to use the <img> tag for a picture, the <iframe> tag for HTML, and the <video> and <audio> tags to embed video or audio.

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

Attributes

height
Designates the height of the container.

src
Provides the URL that the external file lives at.

type
Designates the media type of the embedded content.

width
Designates the width of the container.

Demos

User-submitted codepen.io examples of <embed>

@steime

See the Pen on CodePen.

Want to Contribute?

Submit a codepen.io link that demonstrates <embed>:

to submit a demo.
HTML
×

Success!

Help @reference spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Marika,
tipped: article
amount: 1000 SATS,

tipper: @hatem774,
tipped: article
amount: 1 SATS,

tipper: @nearjob,
tipped: article
amount: 1000 SATS,
)...