HTML Tutorial
HTML - Introduction HTML - Basic HTML - Structure HTML - Element HTML - Attributes HTML - Headings HTML - Paragraphs HTML - Styles HTML - Formatting HTML - Phrase Tags HTML - Quotations HTML - Comments HTML - Colors HTML - CSS HTML - Links HTML - Images HTML - Tables HTML - List HTML - Inline elements HTML - Block elements HTML - Classes HTML - Id HTML - Javascript HTML - File Path HTML - Iframe HTML - Responsive HTML - Computer Code HTML - Head tag HTML - Events HTML - Url Encoding HTML - Entities HTML - Validation
HTML Forms
HTML - Forms HTML - Form Elements HTML - Input types HTML - Input Attributes
HTML5
HTML5 - Introduction HTML5 - New Elements HTML5 - Semantics HTML5 - Style Guide
HTML Media
HTML - Video HTML - Audio HTML - Embed Multimedia
HTML Graphics
HTML - Canvas HTML - SVG
HTML APIs
HTML - Geolocation HTML - Drag & drop HTML - Web Storage HTML - Web Workers
HTML References
HTML - Tag Reference HTML - Tag by Category HTML - Attributes HTML - Global Attributes HTML - Events HTML - Language Codes HTML - Country Codes HTML - URL Encoding HTTP Methods HTTP Status Codes <input> types

HTML Embed Multimedia

Multimedia is content that uses a combination of different content forms such as text, images, animations and interactive content.

Multimedia can be added to web pages using the <object> element or the <embed> element.


HTML <object> Element

The HTML <object> element specifies an embedded object within an HTML document.

Use this element to embed multimedia (like Applets, ActiveX, PDF, and Flash) in your web pages.

Run code

The data attribute specifies the URL of the resource to be used by the object.

The type attribute specifies the media type of data specified in the data attribute.

You can also use <object> element to embed another webpage into your HTML document:

Run code

You can also use <object> element to embed an image into your HTML document:

Run code

Note: To display video and audio: Use the <video> and <audio> elements.



HTML <embed> Element

The HTML <embed> element also specifies an embedded object within an HTML document.

The <embed> element is an empty element which means that it has no closing tag.

Run code

The src attribute specifies the location of the external file to embed.

The type attribute specifies the media type of the embedded content

You can also use <embed> element to embed another webpage into your HTML document:

Run code

You can also use <embed> element to embed an image into your HTML document:

Run code