How to create an inline frame using the <iframe> tag inside an HTML page?

JavascriptWeb DevelopmentFront End Scripts

The <iframe> tag is used to specify an inline frame. Inline frame embed another document inside the current document. It’s quite easy to create an inline frame.

The <iframe> tag has the following attributes −

Attribute
Description
height
The height of an <iframe> in pixels.
name
The name of an <iframe>.
src
The URL of the document to embed.
with
The width of an <iframe> in pixels.


Example

You can try to run the following code to create an inline frame in HTML

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>HTML iframe Tag</title>
   </head>
   <body>
      <iframe src="https://www.qries.com" width="100%">
      </iframe>
   </body>
</html>
raja
Published on 01-Feb-2018 10:46:57
Advertisements