Searching...
Thursday 27 September 2012

Frames In Html

10:48 pm

Frames In Html

With frames ,you can display morethan one webpage in the same browser window. Each html document or webpage is called a frame and each frame is independent of th others.
Frameset :  the Frameset tag defines how divide the window into frames.
Each frameset defines  a set of rows or columns.the value of the rows and cols indicate the amount of screen area each row/column will occupy.
Attributes of Frameset :
Rows
Cols
Frame :  the frame tag defines what HTML document put into each frame.
Attributes of Frame tag :
Frameborder : 0 or 1
Margin height
Margin Width
Name
No-resize
Scrolling :  yes/no/auto
Src
&nbsp;  --> one space     ,    &lt; --> <(lessthan) , &rt ; --> > (greaterthan), &copy; --> © , &reg; --> ®

Frames In Html

Menu.html
<html>
<body bgcolor=”orange”>
<p style =”font-family:verdana; font-size: 16px”>
<a href=”http://phpden.blogspot.com “ target=”content”> About Us</a>
<br><br><br>
<a href=http://www.phpden.blogspot.com target=”_blank”>PhpDen</a>
<br><br><br.
</p>
</body>
</html>
Frametest.html
<html>
<frameset rows=”18%,70%,12%”>
<frame src=”header.html” no-resize frameborder=”0” scrolling=”no”>
<frameset cols=”18%,82%”>
<frame src=”menu.html” noresize frameborder=”0”>
<frame src=”body.html” noresize frameborder=”0” name=”content”>
</frameset>
</html>

Html  <Iframe> :
The <iframe> tag defines an inline frame that contains another document.
Attributes of Iframe :
Align
Frameborder
Margin height
Name
Src
Height
Margin width
Scrolling
Width
<html>
<body bgcolor=”cyan”>
<h1 align=”center” > Iframe Example</h1>
<iframe src=”1.txt” width=”400” height=”300”>
<iframe src=”frametest.html” width=”500” height=”300”>
<iframe src=http://www.phpden.blogspot.com width=”900” height=”400” scrolling=”no”>
</body>
</html>



0 comments:

Post a Comment