Using Frames on websitesLayout - Using FramesFrames technology allows you to have more than one web page on your screen at the same time. Typically a frames site will include a navigation menu down the side or across the top, with the main or contents page filling the rest of the screen, however the number of frames and what you use them for is only limited by your screen. There is a time and a place for using frames, for example for example if you offer a members area or online email to your visitors, so I have included below a section on how to build a site with frames. If you want your pages to be found easily on search engines then frames are not the best solution. For more information see our page on web page optimization. Click here to see how to create HTML code for frames Advantages of frames
However you can get similar results using file includes (more later). You can also buy software like Dreamweaver which allows the use of templates. You create a template and then create the pages for your site based on this template. Then whenever you make a change on the template, the web pages based on this template can be automatically updated. Disadvantages of frames
You can use redirection however this is no use if you want the page to be spidered by the search engines. Search engines regard redirection as a form of spam because you could optimize a page for the search engines with all the right keywords and then redirect the visitor to a completely different page where the content is not 100% relevant to the search. Redirection can have its uses however, for example if you change your URL and want to redirect any traffic from the old address to the new one. You can redirect visitors to another page simply by putting a Javascript in the HEAD area of your page. However a better way to do this is use a 301 redirect because javascript redirection is not liked by search engines. You do this by saving a simple text file with an .htaccess extension and uploading this to the root folder on your site. Note however that this only works on Linux hosted sites. In Windows you have to use ASP code or get the server admin to change the settings on the server itself. The following code should work on Linux but check with your web host as the settings can vary. |
|
Frames HTML code