Equivilant to <framset border=0> with valid HTML 4.01 Frameset?

liunx

Guest
Is there a valid HTML 4.01 Frameset (W3C DTD) way of implimenting this?:<br />
<HTML><br />
<head><br />
<title>Example</title><br />
</head><br />
<frameset rows="160,*" border=0><br />
<frame name="banner" src=http://www.htmlforums.com/archive/index.php/"./banner.html" frameborder=0 noresize scrolling=no><br />
<frameset cols="20%,*"><br />
<frame name="menu" src=http://www.htmlforums.com/archive/index.php/"./menu.html" frameborder=0 scrolling=auto><br />
<frame name="main" src=http://www.htmlforums.com/archive/index.php/"./main.html" frameborder=0 scrolling=auto><br />
</frameset><br />
</frameset><br />
</HTML><br />
:The border=0 part works if I comment out the doctype, but my assignment requires a correct doctype and valid HTML accordingly.<!--content-->what is wrong with frameborder?<br />
<br />
other than that I don't know of any.<br />
<br />
don't be using the loose.dtd file either.<!--content--><!-- Sorry thought u were using iFrames--><br />
<br />
Ill be quiet now<!--content-->Does <frameset rows="160,*" frameborder="0"> work?<!--content-->border has to be frameborder<br />
<br />
===================================<br />
frameborder:<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/1998/REC-html40-19980424/present/frames.html#h-16.2.1">http://www.w3.org/TR/1998/REC-html40-19 ... l#h-16.2.1</a><!-- m --><br />
frameborder = 1|0 [CN] <br />
This attribute provides the user agent with information about the frame border. Possible values: <br />
1: This value tells the user agent to draw a separator between this frame and every adjoining frame. This is the default value. <br />
0: This value tells the user agent not to draw a separator between this frame and every adjoining frame. Note that separators may be drawn next to this frame nonetheless if specified by other frames. <br />
<br />
<br />
<br />
:rocker:<!--content-->W3C sais there is no attribute frameborder for the tag frameset. The attribute frameborder is for the tag frame. I already said <frame ... framborder=0 ...> in all of my frames, but their's still a fat white gap between them. I need to get rid of the gap so the background image will tile accross the frames. This is the source of my ./index.html:<br />
<br />
<!doctype HTML public "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><br />
<HTML><br />
<head><br />
<meta HTTP-equiv="Content-Type" content="text/html;charset=iso-macintosh"><br />
<title>Blah</title><br />
</head><br />
<frameset rows="128,*" border=0><br />
<frame name="banner" src=http://www.htmlforums.com/archive/index.php/"./banner.html" frameborder=0 noresize scrolling=no><br />
<frameset cols="192,*" border=0><br />
<frame name="menu" src=http://www.htmlforums.com/archive/index.php/"./menu.html" frameborder=0 noresize scrolling=auto><br />
<frame name="main" src=http://www.htmlforums.com/archive/index.php/"./main.html" frameborder=0 scrolling=auto><br />
</frameset><br />
<noframes><br />
<a href=http://www.htmlforums.com/archive/index.php/"noframes.html">Non-frames version of this web site.</a><br />
</noframes><br />
</frameset><br />
</HTML><!--content-->Has the page this header:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"<br />
"http://www.w3.org/TR/REC-html40/frameset.dtd"><br />
<br />
:rocker:<!--content-->Is this correct?:<br />
<!doctype HTML public "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><!--content--><frameset rows="128,*" border=0><br />
<frame name="banner" src=http://www.htmlforums.com/archive/index.php/"./banner.html" frameborder=0 noresize scrolling=no border=0><!--content-->W3C: "There is no attribute frameborder for the tag frameset"<br />
W3C: "There is no attribute border for the tag frame"<br />
The page must be valid HTML 4.01 Frameset; that's a required criterion for the assignment.<br />
<br />
How it is now:<br />
<frameset rows="128,*" border=0><br />
<frame name="banner" src=http://www.htmlforums.com/archive/index.php/"./banner.html" frameborder=0 noresize scrolling=no><br />
<frameset cols="192,*" border=0><br />
<frame name="menu" src=http://www.htmlforums.com/archive/index.php/"./menu.html" frameborder=0 noresize scrolling=auto><br />
<frame name="main" src=http://www.htmlforums.com/archive/index.php/"./main.html" frameborder=0 scrolling=auto><br />
</frameset><br />
</frameset><br />
<br />
How Netscape displays it now: correctly! :)<br />
How MSIE displays it now: with a fat white line between the frames! :confused:<!--content-->>> Is this correct?: <<<br />
<br />
>> <!doctype HTML public "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <<<br />
<br />
<br />
<br />
Nope. It should be:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><!--content-->all you "corrected" was the text-case of the doctype. It doesn't make any difference whether one puts "<!doctype HTML public ... ...>" or "<!DOCTYPE HTML PUBLIC ... ...>". Perhaps you should scroll up and look at the original question, and make sure you know what you're talking (typing) about before posting an answer. <br />
<br />
FYI, when I comment out the doctype (thus causing the browser to use quirk mode), the page displays correctly. That proves that the doctype is correct, or commenting it out wouldn't change anything. My real, original question was: is there a valid "HTML 4.01 Frameset" method of implimenting the old <frameset ... ... border=0> (so there is no border or white gap between frames)?<!--content-->uhh yes they are. according to XML which requires some in capitals, the regular should be lower-case. but that doctype should be always be capitalized.<br />
<br />
and another thing, if you have to use a tag to get the job done and W3 complains about it, don't worry about it. it will not be the end of the world and there are a lot of tags that will do that.<!--content--><frameset rows="128,*" border=0><br />
<frame name="banner" src=http://www.htmlforums.com/archive/index.php/"./banner.html" frameborder=0 noresize scrolling=no><br />
<frameset cols="192,*" border=0><br />
<frame name="menu" src=http://www.htmlforums.com/archive/index.php/"./menu.html" frameborder=0 noresize scrolling=auto><br />
<frame name="main" src=http://www.htmlforums.com/archive/index.php/"./main.html" frameborder=0 scrolling=auto><br />
</frameset><br />
</frameset><br />
<br />
that works just fine for me in IE, no border or no fat white line<!--content--><frameset rows="128,*" cols="100%" border="0"><br />
<frame name="banner" src=http://www.htmlforums.com/archive/index.php/"./banner.html" frameborder="0" framespacing="0" marginwidth="0" marginheight="0" noresize scrolling="no"><br />
<frameset cols="192,*" rows="100%" border=0><br />
<frame name="menu" src=http://www.htmlforums.com/archive/index.php/"./menu.html" frameborder="0" framespacing="0" marginwidth="0" marginheight="0" noresize scrolling=auto><br />
<frame name="main" src=http://www.htmlforums.com/archive/index.php/"./main.html" frameborder="0" framespacing="0" marginwidth="0" marginheight="0" scrolling=auto><br />
</frameset><br />
</frameset><br />
Destroys all borders... but I have no idea if it's valid.<!--content-->
 
Back
Top