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
<!DOCTYPE html> <html> <head> <title>HTML iframe Tag</title> </head> <body> <iframe src="https://www.qries.com" width="100%"> </iframe> </body> </html>