In order to develop the Iframes user can make use of
<iframe> tag, inside the
<iframe> tag use
<frameset> instead of the
<body> tag.
<frameset> tag can be use any were in the document, by using
<iframe> tag then it will create the a rectangular region for the document.
The code below demonstrates to create the
<iframe> by using the these tags is as shown.
[html]
<!DOCTYPE html>
<html>
<head>
<title>HTML Iframes</title>
</head>
<body>
<p>Content Of the Document</p>
<iframe src="http://www.splessons.com/" width="555" height="200">
Sorry your browser does not support inline frames.
</iframe>
<p>Document content also go here...</p>
</body>
</html>
[/html]
Result
By running the above code in a preferred browser user can get the following output as shown in below image.
Without Borders
The code blow demonstrates the Iframe without border to remove the border user need to use the CSS border property.
[html]
<!DOCTYPE html>
<html>
<body>
<iframe src="http://www.splessons.com/" style="border:none"></iframe>
</body>
</html>
[/html]
Result
By running the above code in a preferred browser user can get the following output as shown in below image.
Height and Width
By using the height and width attribute user can set the height and width of the frames in percentages as shown below.
[html]
<!DOCTYPE html>
<html>
<body>
<iframe src="http://www.splessons.com/" width="300" height="250"></iframe>
</body>
</html>
[/html]
Result
By running the above code in a preferred browser user can get the following output as shown in below image.