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





Related Articles
What is HTML Plug-ins HTML Plug-ins
How to set HTML <object> Element HTML Plug-ins
How to add image in Object Element HTML Plug-ins
How to add HTML Image in <embed> Element HTML Plug-ins
How to add html page in <embed> element HTML Plug-ins

Single Articles
Example of Adding Image in <embed> ElementHTML Plug-ins
Full Example of Adding Image in <embed> ElementHTML Plug-ins

Read Full:
HTML Plug-ins
Category:
Web Tutorial
Sub Category:
HTML Plug-ins
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
47


Reffered: https://www.w3schools.com/html/html_object.asp

Share on: