Skip to content
Related Articles

Related Articles

HTML | <embed> src Attribute
  • Last Updated : 12 Sep, 2019

The HTML <embed> src Attribute is used to specify the web address of the embedded content.

Syntax:

<embed src="URL">

Attribute Values:

  • src: It is used to hold the URL. It is used to specify the web address of the embedded content.
    1. An absolute URL: It points to another webpage.
    2. A relative URL: it points to a file within a website.

Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>HTML embed src Attribute</title>
    <style>
        q {
            color: #00cc00;
            font-style: italic;
        }
    </style>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
    <h2>HTML embed src Attribute</h2>
    <br>
    <embed src="loading2.swf" 
           width="400px" 
           height="300px"
           type="application/x-shockwave-flash">
</body>
  
</html>

Output :

Supported Browsers: The browser supported by HTML embed src Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :