![]() | ![]() |
This tag is a container to create an inline or floating frame. A floating frame
is a frame in which the contents of another HTML document can be seen. The
difference with a normal frame is that the floating frame can be seen inside a
document and is treated as a part of the document. This means that when you
scroll through the page the frame will scroll with it.
Browsers that support this tag will ignore all HTML inside the container. Other browsers will not, so you can give an alternative for the floating frame to browsers that do not support it. |
![]() | |||||||||
FRAMEBORDER![]() |
Provides the option to display or not display a border for a frame. A value of 0 displays no border. A value greater than 1 will display a border, but the value has no influence of the width of the border. | ||||||||
HEIGHT![]() |
Specify the height of the frame to the browser. You can specify the height as a number of pixels or as a percentage of the current screen height. | ||||||||
MARGINHEIGHT![]() |
This attribute is used to control the vertical margins for the frame. If specified, the value for MARGINWIDTH is in pixels. Margins can not be less than one-so that frame objects will not touch frame edges-and can not be specified so that there is no space for the document contents. The MARGINWIDTH attribute is optional; by default, all frames default to letting the browser decide on an appropriate margin width. | ||||||||
MARGINWIDTH![]() |
This attribute is used to control the horizontal margins for the frame. If specified, the value for MARGINWIDTH is in pixels. Margins can not be less than one-so that frame objects will not touch frame edges-and can not be specified so that there is no space for the document contents. The MARGINWIDTH attribute is optional; by default, all frames default to letting the browser decide on an appropriate margin width. | ||||||||
NAME![]() |
The NAME attribute is used to assign a name to a frame so it can be targeted by
links in other documents (These are usually from other frames in the same
document.) The NAME attribute is optional; by default all windows are unnamed.
Names must begin with an alphanumeric character. All other window names will be
ignored.
Named frames can have their window contents targeted with the TARGET attribute of the A tag | ||||||||
SCROLLING![]() |
The SCROLLING attribute is used to describe if the frame should have a
scrollbar or not.
| ||||||||
SRC![]() |
The SRC attribute takes as its value the URL of the document to be displayed in this particular frame. | ||||||||
WiDTH![]() |
Specify the height of the frame to the browser. You can specify the height as a number of pixels or as a percentage of the current screen height. |
![]() | ![]() | ||||
Source: | Lets create a page with several sites inside it : <TABLE WIDTH=100%> <TR><TD>www.microsoft.com</TD></TR> <TR><TD> <IFRAME SRC=http://www.microsoft.com WIDTH=100% HEIGHT=200 FRAMEBORDER=0> <FONT COLOR=#7F0000>I'm sorry but your browser doesn't support the IFRAME tag.</FONT> </IFRAME></TD></TR> <TR><TD>www.netscape.com</TD></TR> <TR><TD> <IFRAME SRC=http://www.netscape.com WIDTH=100% HEIGHT=200 FRAMEBORDER=0> <FONT COLOR=#7F0000>I'm sorry but your browser doesn't support the IFRAME tag.</FONT> </IFRAME></TD></TR> </TABLE> | ||||
Result: |
Lets create a page with several sites inside it :
|