HTML Embed tag
Embed tag in HTML:
The <embed> tag in HTML was previously used to embed external content, like multimedia or plugins, into a web page.
The "embed" tag is like a digital frame. It's used to insert external multimedia content into a web page, allowing users to interact with or view the content directly on the page.
Example
Let's use the "embed" tag to insert a YouTube video into a web page:
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Watch This Amazing Video</title>
</head>
<body>
<h1>Watch This Amazing Video</h1>
<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</body>
</html>
Try it Yourself »