IFRAME (<iframe>) Tag

by Jai 09-Jul-19

0 573


The <iframe> tag is known as Inline frame which is used in HTML. An inline frame merge another 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:

IFRAME (<iframe>) Tag


Share:


Leave a Reply


Comments
    Waiting for your comments