Table of Contents

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.
<!DOCTYPE html>
<h2>Example of Iframe </h2>
<div style="height: 350px;width:350px; border: 2px solid green;">
<iframe height="300px" width="100%" src="">
<p><a href="" target="_blank"></a></p>
<input type="button" name="button" value="click here">

HTML Embed Tag

<!DOCTYPE html>  <html>  
<title>Embed Tag</title>    
<h2>Example of embed tag</h2>
<div style="height: 350px; width: 350px; border: 2px solid black;">  
<embed src="" height="300px" width="50%"></embed>  
English Hindi