Saturday, 3 November 2018

How to use Frames in HTML.

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.

<html>
<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>






2. Simple HTML program  to display frames row wise.

<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>



2 comments:

DBMS NOTES UNIT 3

                                                              UNIT 3  ER (Entity Relationship) An entity-relationship model is known as an E...