Frame is a browser window that is divided to become few windows. Hence, frames enable different HTML documents to be presented in one browser window . Only IE 3.0 and later or Netscape navigator 2.0 and later enabled frames.
The Frames tags are:
| <Frameset frameborder="#" rows="#" frameborder="#" framespacing="#"> <Frame src="/img_articles/6695/your_url" name="frame_name" marginwidth="#"marginheight="#" scrolling="#" bordercolor="#" noresize="#" framespacing="#" frameborder="#"> </frameset> |
Frameset tag can be followed with some attribute as follow:
| Attributes |
Description |
Values |
| Frameborder |
Set border size of frames |
In number pixel |
| Rows or Cols |
Enable for us to make trivial lines of frame to emerge and also its size. |
Any number, follow the example. ROWS="300,200,*" |
| Framespacing | Distance dissociating each frame-frame | Number pixel. |
Following is the example:
| <Html> <Head> <Title>free html tutorial and also rich of keywords</Title> </Head> <Body> <Frameset cols="100,*" frameborder="1"> <Frame src="/img_articles/6695/link.htm" name="link"> <Frame src="/img_articles/6695/tutorial.htm" name="tutorial"> </Frameset> </Body> </Html> |
In appearance it will be seen as follow:
| link.htm | tutorial.htm |
In every frame tag can be figured in this attributes:
| Attributes | Description | Values |
| Name | Name of frame for target linking | May not load string: \ /: * ? " < > | |
| Src | URL from any document to stay in the frame | URL of Document |
| Marginwidth | Margin Width of frame | Any number |
| Marginheight | Margin height of frame | Any number |
| Scrolling | enable scrolling in frame | yes/No/Auto |
| Bordercolor | Set border Color of frame | Color, or in hexadecimal |
| Noresize | Enable frame sized cannot be changed | Yes/No |
| Framespacing | Apart to usher cell frame | Number in pixel. |
| Frameborder | Change frame border size | Number in pixel. |
The advantage of using frames is you just need a little works when editing your web pages. But there is any disadvantage too, since many search engines can not recognize framed pages.
Hence, you need to enter noframes tag, that will allows search engines recognize your framed web pages.
Following is the example:
| <Html> <Head> <Title>free html tutorial and also rich of keywords</Title> < META NAME="AUTHOR" CONTENT="Endar"> <META NAME="GENERATOR" CONTENT="MICROSOFT Frontpage 5.0"> < META NAME="KEYWORD" CONTENT="Free, free tutorial, free html tutorial, rich of keyword, free html tutorial rich of keywords"> < META NAME="DESCRIPTION" CONTENT="Free Html tutorial to build your own web site, rich of keywords"> </Head> <Frameset cols="100,*" frameborder="1"> <Noframes> <Body> Enter your paragraphs, enrich your web pages with keywords here and also place a link here. Example: <a href="/img_articles/6695/free-html-tutorial-keywords-density.htm" title="free html tutorial, keywords density">your link</a> </Body> <Noframes> <Frame src="/img_articles/6695/link.htm" name="link"> <Frame src="/img_articles/6695/tutorial.htm" name="tutorial"> </Frameset> </Html> |





