lemonpi 0 Posted April 13, 2006 Report Share Posted April 13, 2006 Can anyone point out the error in this html?<html><body bgcolor="#333333"><FRAMESET COLS="20%,80%"><FRAME SRC="menu.htm" name=S><FRAME SRC="main.htm" name=T></FRAMESET></body></html> Quote Link to post Share on other sites
scott100 1 Posted April 13, 2006 Report Share Posted April 13, 2006 Important: You cannot use the <body></body> tags together with the <frameset></frameset> tags! <html><frameset cols="20%,80%"><frame src="menu.htm" name="S"><frame src="main.htm" name="T"></frameset></html> Quote Link to post Share on other sites
UnfeelingAlloy 0 Posted April 15, 2006 Report Share Posted April 15, 2006 Indeed. The frameset section should go in the head part of the page, to tell the browser that it needs to divide up the window prior to applying the content, which would be in the body tag.So you'd need to have it something like this: <html> <head> <FRAMESET COLS="20%,80%"> <FRAME SRC="menu.htm" name=S> <FRAME SRC="main.htm" name=T> </FRAMESET> </head> <body bgcolor="#333333"> blahblahblah </body></html> Quote Link to post Share on other sites
Little Goat 0 Posted April 15, 2006 Report Share Posted April 15, 2006 Indeed. The frameset section should go in the head part of the page, to tell the browser that it needs to divide up the window prior to applying the content, which would be in the body tag.So you'd need to have it something like this:<html> <head> <FRAMESET COLS="20%,80%"> <FRAME SRC="menu.htm" name=S> <FRAME SRC="main.htm" name=T> </FRAMESET> </head> <body bgcolor="#333333"> blahblahblah </body></html> <{POST_SNAPBACK}> sorry, but no, thats not correct.the frameset is used instead of the body. Quote Link to post Share on other sites
zachary 0 Posted April 15, 2006 Report Share Posted April 15, 2006 let me rewrite it for you <html> <head> <body bgcolor="#333333"> <FRAMESET COLS="20%,80%"> <FRAME SRC="menu.htm" name=S> <FRAME SRC="main.htm" name=T> </FRAMESET> </head> <font color="white"> <p> blahblahblah <p> </font> </body></html> Quote Link to post Share on other sites
The-Eagle-Eye 0 Posted April 15, 2006 Report Share Posted April 15, 2006 Frameset is independent of head and body tags.Still u can use head to display ur title on title bar.Frameset is to divide the browser's screen into more than one frames.There is no use of body tag to display any thing. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.