Why you should avoid frames in your website design
04 November 2011

Web designers are occasionally confronted with clients who have antiquated conceptions of what makes a website good. The most frustrating of these is the use of frames. Frames were cool in the early days of the internet, before CSS made styling web pages so much simpler. Frames essentially tell the browser to create a divide between two parts of the page, and to load a separate page into each panel.You can do various things with frames, such as keep one part of the page static while the other part can be scrolled (useful for navigation), but all of these functions can now be handled much better by using CSS and Ajax. Here are a few reasons why you shouldn’t be using frames in your website design. After we look at these, we’ll look at a simple solution for using CSS to handle what frames used to take care of.
1) search engines struggle with framesFrames require a relationship between the various panels on your site, which can be interpreted by web browsers but not very easily by search engines. Google simply ignores content in frames when indexing a page, so you immediately hurt your search ranking.2) Frames can break a page if the user does something unexpected Many user actions will cause a frame-based layout to break. Clicking the back button, refreshing a single frame, or arriving on a framed page without the context of the other frames, can all cause one or more frames on the page to display a 404 page.3) Bookmarking framed pages becomes problematicIf a user tries to bookmark a page, the browser might not handle this in the way the user expects. They will think they’ve bookmarked your page, only to call up the bookmark later and arrive at a single frame, displayed in their browser as if it were a whole page.4) Frames can cause printing problemsAlthough many browsers provide options for printing pages in a frameset, this doesn’t mean that users will know which option to select. More often than not, printing a frameset will result in only a small element of the page being printed.5) Frames increase server load and margin for errorIf you have three frames on a page, that means you have three times as many http requests as a single page separated using CSS and HTML. If you have three pages, it also means you are three times more likely to have an error in the code of one of your pages, and it makes troubleshooting these errors more difficult.These are only some of the reasons why frames should be avoided wherever possible. I could list a dozen more, but the point is that the only reason you should need to not use frames is because there is an easier, and better-looking way to do this using CSS.CSS-Based SolutionThe following solution is an example provided by TechRepublic, but it is the type of code you will find on most modern websites.The above code simply defines two areas on your page, and when you create HTML
elements with these attributes (
, for example), they will automatically divide your page nicely, according to the parameters you have defined. This is much easier than using frames and coding a separate page for each frame!
| Tags:
search engines,
google,
website,
website design,
frames,
bookmarking, Posted in: Website Design, Web Developmnet, |
Readers Comments
No comments have been made about this blog.
Leave a Comment
Latest Blogs
- Why you need to research your competition
Date: 16 May 2012 - What is brand planning and how does it help your business?
Date: 14 May 2012 - Do you have a digital strategy that works?
Date: 11 May 2012 - Are you making full use of the cloud? 5 ways you can simplify your life with the cloud
Date: 09 May 2012 - Let’s review Rackspaces fanatical support promise, does it live up to the hype?
Date: 07 May 2012 - Hot Website Design Trends in 2012
Date: 04 May 2012 - How to use royalty free music in your web videos
Date: 20 April 2012 - How to optimise your website for a Google Places listing
Date: 18 April 2012 - What images you can use and which ones you can’t use for web design
Date: 16 April 2012 - What to Look For when Researching Working Websites
Date: 13 April 2012
Blog Search
Blog Archives
May 2012April 2012
March 2012
February 2012
January 2012
November 2011
Blog Categories
- Advertising
- Affiliate Marketing
- Blog
- Book Review
- Business
- Business Competition
- Business partners
- Business Planning
- Business Psychology
- Business Strategies
- customer Management
- Email Marketing
- Events
- Financial Planning
- Google Places
- Information Technology
- Internet
- Internet Marketing
- Investment and Funding
- IT Security
- Jobs
- Legal
- Link Building
- Market Research
- Marketing
- Mindset
- Mobile Marketing
- niche markets
- Online Business
- Outsourcing
- Payment methods
- People Management
- Perceptions
- Personal Development
- Programming
- Project Management
- Sales
- Scam
- Search Engine Optimization
- Seminars
- Social Corporate Responsibility
- Social Media
- Social Networking
- Spam Tactics
- Startup Advice
- Strategy
- Team Management
- Technology
- Time Management
- Use of technology
- Video Marketing
- web 2.0
- Web Developmnet
- Website Content
- Website Design
- Website Management
- Website Sales
- Website Traffic
- Wordpress




