Need help with frames.

Soldato
Joined
13 Nov 2002
Posts
3,589
I've got frames.html:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>Betfair</TITLE>
</HEAD>
<FRAMESET cols="*,*">
  <FRAMESET rows="*, *, *, *, *">
      <FRAME src="index.html">
      <FRAME src="index.html">
      <FRAME src="index.html">
      <FRAME src="index.html">
      <FRAME src="index.html">
  </FRAMESET>
  <FRAME src="index.html">
</FRAMESET>
</HTML>

and index.html

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>Betfair</TITLE>
</HEAD>
<A HREF="http://sports.betfair.com/">Betfair</A>
</HTML>

It splits the page correctly but when I click any link, the page loads in the frame but nothing works. The menu on the left doesn't appear and none of the links work.

What am I doing wrong?
 
Don't use frames as others have said

As a history lesson for myself, where/why do people use frames? I'm only new to website design and the one thing you lot have actually taught me is how to create a basic website using the correct code etc
 
Frames are basically the old way of doing layout, same as using tables.

Now CSS has matured it's so flexible and useful that it's better to do things that way - it's much more elegant and easier to manage anyway.

If you're just starting out, best getting it right and up to date from the beginning.
 
Back
Top Bottom