lemonpi Posted April 13, 2006 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> Link to comment Share on other sites More sharing options...
scott100 Posted April 13, 2006 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> Link to comment Share on other sites More sharing options...
UnfeelingAlloy Posted April 15, 2006 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> Link to comment Share on other sites More sharing options...
Little Goat Posted April 15, 2006 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. Link to comment Share on other sites More sharing options...
zachary Posted April 15, 2006 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> Link to comment Share on other sites More sharing options...
The-Eagle-Eye Posted April 15, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now