HTML frames
HTML frames,If you define the frameset by using either the rows or cols attribute and try to display it in the browser window, you will get the page without any contents. for contents you must specify which HTML document should by displayed in each frame. for this <FRAME> element is used.
This <FRAME> element is used to specify the contents of different frames. It is an empty tag, so no closse </FRAME> tag. <FRAME> element must contain the SRC attribute to indicate which page should be loaded in the frame.
For example--
<FRAME SRC="link.html">
HTML CODE:
HTML frames,If you define the frameset by using either the rows or cols attribute and try to display it in the browser window, you will get the page without any contents. for contents you must specify which HTML document should by displayed in each frame. for this <FRAME> element is used.
For example--
<FRAME SRC="link.html">
HTML CODE:
OUTPUT:
FRAME HAS SOME ATTRIBUTES--
- Frameborder-- This attribute allows you to turn the border on or off for the individual frame. By default value, border is on. You can set the border by setting this attribute to value 0 or 1.
<FRAME SRC="A.HTML" FRAMEBORDER="0">
- Marginwidth-- This attribute is used to specify the amount of space that frame's contents will have from its left and right border. The value can be specified in pixels.
<FRAME SRC="A.HTML" MARGINWIDTH="10">
- Marginheight-- This attribute is used to specify the amount of space that frame's contents will have from its top and bottom border. The value can be specified in pixels.
<FRAME SRC="A.HTML" MARGINHEIGHT="10">
- Name--This attribute is used to give name to the frame so that it can be refrenced. It is usually used when links are created in one frame, wants to load pages in other frames.
<FRAMR SRC="A.HTML" NAME="F1">
- Noresize--This attribute is used to prevent the user from resizing the frame, By default it is disabled.
<FRAME SRC="A.HTML" NORESIZE>
- Scrolling--This attribute is used to control the appearance of scrollbar in the frame. Its value can be YES, NO or AUTO.
<FRAME SRC="A.HTML" SCROLLING="NO">
If you want to know about the <FRAMESET> element click on this link--frames-in-html.html
1 Comments
Thanks for sharing such a nice Blog.I like it.
ReplyDeleteAn Easy Way To Start Earning Money Online
SEO Best Practices 2019 For Your Business Website