A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-embed-tag/ below:

HTML embed Tag - GeeksforGeeks

HTML embed Tag

Last Updated : 11 Jul, 2025

The <embed> tag in HTML is used to embed external content or media files (such as audio, video, or interactive elements like Flash) directly into a webpage.

HTML
<!DOCTYPE html>
<html>

<head>
    <title>embed Tag</title>
    <style>
        q {
            color: #00cc00;
            font-style: italic;
        }
    </style>
</head>

<body>
    <p> <q>GeeksforGeeks</q> is loading.</p>
    <br>
    <embed src="loading2.swf" 
           type="application/x-shockwave-flash">
</body>

</html>
Syntax
<embed src="URL" type="MIME_type" width="width_value" height="height_value">
Attributes

Attribute Values

Description

height

This attribute contains the attribute value in pixels. It is used to specify the height of the embedded content.

src

It is used to hold the URL. It is used to specify the web address of the embedded content.

width

The width value is set in pixels. It is used to specify the width of embedded content.

type

It contains the media_type content. It is used to specify the media type of the embedded content.

embedded PDF and video using <embed> Tag HTML
<!DOCTYPE html>
<html>

<body>
    <h2>Embed a PDF Document</h2>
    <embed src="example.pdf" type="application/pdf" 
           width="400" height="200" />

    <h2>Embed a Video</h2>
    <embed src="example.mp4" type="video/mp4" 
           width="400" height="200" />

</body>
</html>


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4