Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are HTML frames bad?

I know they are, but my co-worker doesn't believe me. He keeps telling me that Google crawls the inside content and caches it just fine. According to Google, it does crawl them, but doesn't guarantee doing it properly.

Any thoughts why frames are bad for public web sites?

like image 1000
sarsnake Avatar asked Jun 18 '10 23:06

sarsnake


People also ask

What are the disadvantages of HTML frames?

The major disadvantages of using frames are: Bookmarks only bookmark the top level pages (the framesets themselves). A user is unable to bookmark any of the Web pages viewed within a frame. Frames can make the production of a website complicated, although current software addresses this problem.

Why iframe is a bad idea?

iframe injection is a very common cross-site scripting attack. iframes use multiple tags to display HTML documents on web pages and redirect users to different web addresses. This behavior allows 3rd parties to inject malicious executables, viruses, or worms into your application and execute them in user's devices.

Why were frames removed from HTML?

Frames (frameset) acts as document. It's removed because it breaks HTML documents structure and navigation. Eg. you have links in one frame, content in the other, you can't open link from the page in in a new window, you can't link to specific sub-page, etc.

Why HTML frame should not be used while designing website?

For example, frames can reduce the amount of usable space on a page, they make it difficult or impossible for users to link directly to or bookmark a specific page within a frameset, and they often prevent users' Back buttons from working as expected.


1 Answers

There are various usability and accessibility issues with frames:

  1. link can open in the frame it is enclosed in (e.g. a side pane);
  2. can break the forward/backward navigation;
  3. difficult to bookmark;
  4. are not easily searchable (likely to see the content in Google, etc.);
  5. break on browsers like Lynx, that are console/terminal based;
  6. difficult to size properly (e.g. consuming height on widescreen monitors for banner frames);
  7. can break with screen readers and magnifiers (for blind users and visual impaired users);

See http://www.angelfire.com/super/badwebs/ for an example of what not to do.

like image 163
reece Avatar answered Oct 12 '22 02:10

reece