Working Around Frames
By Submit Corner
Tell a Friend About This Page
Overview: Frames can result in problematic indexing when search engines spider
your website, make sure you know the tricks of the trade to getting your frames
pages listed.
Most search engines don't handle pages with frames very well. Many
search engines consider each frame as a link from your main page. Often,
this results in the search engine reading only the main page. This poses
a number of problems, either none of your webpages will be indexed or
each individual frame will be indexed. The best solution around this would
be to implement a frames and a nonframes version, such that regular users and non-frame
users (search engines) can understand. Additionally, each individual frame should also
include the META Robots Tag to indicate to
search engines not to index individual frames.
One implementation of this scenario can be done with
the <noframes> and </noframes> tags. The noframes tag presents an alternative
version of your webpage displayed to users who do not support frames. The contents included
between the <noframes> tags should be your webpage as you would like shown to non-frame users.
Below, we've attached the syntax for the <noframes> HTML tag and a sample application.
Noframes HTML Tag Usage
The NoFrames tag is a standard HTML tag that is read by browsers that do not support frames.
The contents between the opening and closing NoFrames tag will be displayed to users in its entirety,
so you must account to merge two webpages into one, your frames version and the same content without
frames into the NoFrames version.
NoFrames Tag Usage
HTML Tag: |
"NOFRAMES" |
General Usage: |
<NOFRAMES> Insert content for your non-frames browsers here </NOFRAMES>
|
Example Usage: |
<HTML><HEAD>
<TITLE>Sunshine Limited</TITLE>
</HEAD>
<FRAMESET COLS="90%,10%">
<FRAME SCROLLING=YES SRC="frame1.html">
<FRAME SCROLLING=NO SRC="frame2.html">
<NOFRAMES>
Insert content for your non-frames browsers here
</NOFRAMES>
</FRAMESET>
</HTML>
|
Comments: |
The above code will generate two frames. Users that have frames enabled browsers will view the frames normally, users without frame browsers will be displayed the contents between the NoFrames tags. |
META Robots Tag: |
In addition to the above, you should include the Meta Robots code below
to each individual frame (in this case, frame1.html and frame2.html) to exclude indexing individual
frames.
<META NAME="robots" CONTENT="FOLLOW,NOINDEX">
|