In this tutorial, you will see the use of embed tag of html5. It is used for including external resource in your HTML document. With the help of embed tag, you can add video, audio, or image etc. It is a singleton tag. you can not write any thing in it.
There are following attributes in embed tag:
| Attribute | value | Description |
|---|---|---|
| src | URL | Address of resource file. |
| height | pixel | height of media. |
| type | type of media | define type of media. |
| width | pixel | define width of media. |
Declaration syntax of embed tag in HTML5.
| <embed src="" type=""> |
|
<!doctype html > <html > <head> <title>embed Tag </title> </head> <body> <p><b>Example of embed tag in HTML5.</b></p> <embed src="Pick.jpg" height="300" width="300" /> </body> </html> |

The embed tag is only available in HTML5. It is not available in HTML4.01.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.