You are on page 1of 5

CODE 1:

<!DOCTYPE html><html>

<head><title>FrameSet_Tag

</title><frameset cols = "15% ,40% ,40% ">

<frame src = "html_img4.png" />

<frame src = "html14.html" />

<frame src = "html27.html" />

</head><body></body></html>

OUTPUT:

CODE 2:

<!DOCTYPE html><html>

<head><title>FrameSet_Tag

</title><frameset rows = "15% ,40% ,40% ">

<frame src = "html_img4.png" />

<frame src = "html14.html" />


<frame src = "html27.html" />

</head><body></body></html>

OUTPUT:

CODE 3:

<html><head>title>HTML Frames</title>

</head><frameset rows="50%,50%" cols="50%,50%">

<frame src="html_img1.jpg" name="lefttop"/>

<frame src="html_img2.jpg" name="righttop"/>

<frame src="html17_2.html" / name="leftbottom"/>

<frame src="html14.html" name="rightBottom"/>

</frameset></html>

OUTPUT:
CODE 4:

<html><body><h2>HTML Iframes</h2>

<p>You can use the height and width attributes to specify the size of the iframe:</p>

<iframe src="html14.html" height="400" width="800"></iframe></body>

</html>

OUTPUT:
CODE 5:

<html><body><h2>HTML Iframes</h2>

<p>You can use the height and width attributes to specify the size of the iframe:</p>

<iframe src="html14.html" height="400" width="800" style="border:none;"></iframe></body>

</html>

OUTPUT:

CODE 6:

<html><body>

<h2>Custom Iframe Border</h2>

<p>With CSS, you can also change the size, style and color of the iframe's border:</p>

<iframe src="html14.html" style="border:2px solid red;" height="100" width= "100"></iframe>

</body></html>

OUTPUT:
CODE 7:

<html><body><h1>What is Ethics<h1>

<iframe width="420" height="345" src="https://www.youtube.com/embed/vAuv0HujFbc"">

</iframe></body></html>

OUTPUT:

CODE 8:

<html><body><h1>What is Ethics</h1>

<iframe width="420" height="345"


src="https://www.youtube.com/embed/vAuv0HujFbc?autoplay=1&mute=1"></iframe></body>

</html>

OUTPUT:

You might also like