Search

HTML Iframes

An html iframe is used to display a web page within a same web page.

Example : -

<!DOCTYPE html> 
<html>
   <body>
      <h2>HTML Iframes Example</h2>
      <p>We can use the height and width attributes to specify the size of the iframe:</p>
      <iframe src="https://www.stackoverlode.com/" height="200" width="100%"></iframe> 
   </body>
</html>

— The output of the above example will look something like this:-

HTML Iframes Example

We can use the height and width attributes to specify the size of the iframe:

HTML Iframe Syntax 

We can define an inline frame with HTML tag <iframe>. 

Syntax :

<iframe src="URL"></iframe>

The src is  attribute specifies the URL "web page address " of the inline frame page. 

 

 

Stack Overlode is optimized Tutorials and examples for learning and training. Examples might be simplified to improve reading and learning and understand. Tutorials and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using Stack Overlode, you agree to have read and accepted our terms of use, cookie and privacy policy.