iFrame Tag in HTML || HTML iFrame Tag

HTML iFRAME (<iframe>) Tag

Last Updated by Jai 09-Jul-19

0 758


The <iframe> tag is known as the Inline frame which is used in HTML. An inline frame merges other documents under the current HTML document. We can also use CSS to style the iframe.

The <iframe> use some attributes like src, width, height, etc. It must have opening <iframe> tag and the closing </iframe> tag.

Program:

<!DOCTYPE html>
<html>
<head>
<title>iframe Tag</title>
</head>
<body>
<iframe src="https://www.codingtag.com" height="420" width="500"></iframe>
<p>Use the height and width attributes to specify the size of the iframe </p>
</body>
</html>

Output:

HTML iFRAME (<iframe>) Tag


Share:


Leave a Reply


Comments
    Waiting for your comments