Learn to use Frames in HTML.
- Frames are used in place of body in HTML.
- The <Frameset> tag is used in place of <body> tag.
- The frameset element can have rows or cols attribute .
- The number of rows or cols are used to define number of rows or cols in frameset.
- Frame tag contains src attribute in which we will provide the path of web page whose content we want to display in that particular frame.
1. Simple HTML program to display frames column wise.
<head></head>
<frameset cols="*,*,*,*">
<frame src="F:\HTML\frame1.html">
<frame src="F:\HTML\frame2.html">
<frame src="F:\HTML\frame3.html">
<frame src="F:\HTML\frame4.html">
</frameset>
</html>
<html>
<head></head>
<frameset rows="*,*,*,*">
<frame src="F:\HTML\frame1.html">
<frame src="F:\HTML\frame2.html">
<frame src="F:\HTML\frame3.html">
<frame src="F:\HTML\frame4.html">
</frameset>
</html>
3. Simple HTML program to display frames column and row wise together.
<html>
<head></head>
<frameset cols="*,*,*">
<frame src="F:\HTML\frame1.html">
<frame src="F:\HTML\frame2.html">
<frameset rows="*,*">
<frame src="F:\HTML\frame3.html">
<frame src="F:\HTML\frame4.html">
</frameset>
<frame src="F:\HTML\frame1.html">
</frameset>
</html>
<head></head>
<frameset rows="*,*,*,*">
<frame src="F:\HTML\frame1.html">
<frame src="F:\HTML\frame2.html">
<frame src="F:\HTML\frame3.html">
<frame src="F:\HTML\frame4.html">
</frameset>
</html>
3. Simple HTML program to display frames column and row wise together.
<html>
<head></head>
<frameset cols="*,*,*">
<frame src="F:\HTML\frame1.html">
<frame src="F:\HTML\frame2.html">
<frameset rows="*,*">
<frame src="F:\HTML\frame3.html">
<frame src="F:\HTML\frame4.html">
</frameset>
<frame src="F:\HTML\frame1.html">
</frameset>
</html>
thanx
ReplyDeleteGud
ReplyDelete