Horje
How to add HTML Image in <embed> Element

The <embed> element is supported in all major browsers.

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

Web browsers have supported the <embed> element for a long time. However, it has not been a part of the HTML specification before HTML5.


Example of Adding Image in <embed> Element

Follow the Example
index.html
Example: HTML
<embed src="https://horje.com/avatar.png">

Output should be:

Example of Adding Image in <embed> Element

Full Example of Adding Image in <embed> Element

Follow the Example

Note that the <embed> element does not have a closing tag. It can not contain alternative text.

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<embed src="https://horje.com/avatar.png">

</body>
</html>

Output should be:

Full Example of Adding Image in <embed> Element





Category:
Web Tutorial
Sub Category:
HTML Plug-ins
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference