HTML Iframe Tag

  • <iframe> an inline frame with an HTML tag .
  • The <iframe> tag defines a rectangular region within the document in which the browser can display a separate the document, including scrollbars and borders.
  • The src attribute is used for the URL of the document that occupies the inline frame.
Example
<!DOCTYPE html>
<html>
<body>
<h2>Example of Iframe </h2>
<div style="height: 350px;width:350px; border: 2px solid green;">
<iframe height="300px" width="100%" src="https://nielitbhu.com/lp-courses/">
    </iframe>
<p><a href="https://www.nielitbhu.com" target="_blank">nielitbhu.com</a></p>
<center>
<input type="button" name="button" value="click here">
</center>
</div>
</body>
</html>

Output

 

Example of Iframe

   

HTML Embed Tag

Example
<!DOCTYPE html>  <html>  
<head>  
<title>Embed Tag</title>    
</head>  
<body>  
<h2>Example of embed tag</h2>
<div style="height: 350px; width: 350px; border: 2px solid black;">  
<embed src="https://nielitbhu.com/christmas2012.jpg" height="300px" width="50%"></embed>  
</div>
</body>  
</html>

Output

 

Example of embed tag

 
What is HTML
  • HTML is the standard  for Hypertext Markup Language for Web pages.
  • The HTML elements tell the browser ...
    Click Here
Previous topic next topic What is an Element in HTML
  • An Hypertext Markup Language(HTML) element ...
    Click Here
Previous topic next topic HTML Headings
  • The HTML headings are used to define the heading ...
    Click Here
Previous topic next topic HTML Formatting Elements
  • The <b>  element is use for bold text, without ...
    Click Here
Previous topic next topic HTML Comments
  • The HTML Comment are describe the extra feature about ...
    Click Here
Previous topic next topic HTML Attributes
  • Every HTML element can have attributes.
  • The HTML Attribute ...
    Click Here
Previous topic next topic HTML Images
  • The <img> tag is empty
Note: The empty ...
Click Here
Previous topic next topic HTML Links
  • HTML links are hyperlinks.
  • HTML link default color is ...
    Click Here
Previous topic next topic HTML Table
  • An HTML table is defined with the <table> tag.
  • ...
    Click Here
Previous topic next topic Table Backgrounds You can set the table background using one of the ...
Click Here
Previous topic next topic Table Header, tbody and Footer
  • Tables are categories into three parts: ...
    Click Here
Previous topic next topic Basic to Advance table design in HTML Example 1 <!DOCTYPE> <html> <body> ...
Click Here
Previous topic next topic HTML div tag
  • The <div>  element is used for style blocks ...
    Click Here
Previous topic next topic HTML Lists
  • The list is the way to present the data ...
    Click Here
Previous topic next topic HTML Form
  • The HTML <form> element is used to collect user ...
    Click Here
Previous topic next topic HTML Iframe Tag
  • <iframe> an inline frame with an HTML tag ...
    Click Here
English Hindi