Frameset - W3C Validation

User 111435 Photo


Registered User
43 posts

I am trying validate the following piece of code, originally designed in Coffee Cup, but I am getting some errors, which I can't seem to resolve. Please could someone advise me what the solutions is.

=============================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<!-- Above validates the following for HTML 4.01 -->

<html>
<!-- Created with the CoffeeCup HTML Editor -->
<!-- http://www.coffeecup.com/ -->
<!-- Brewed on 26/09/2004 18:28:44 -->

<head>
<title>STTA_Main_Page</title>

<meta name="keywords"
content="Surrey, Surrey TTA, STTA, table, tennis, tabletennis, table tennis, tt, sport, ping pong">

<meta name="description"
content="Surrey table tennis Association">

<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-3">

</head>

<!-- Frames are to be placed in the top of an -->
<!-- HTML page BEFORE the BODY tag -->
<frameset rows="100,*" border="0" scrolling="no" framespacing="0" frameborder="0" borderColor="blue">

<!-- Three columns in the Banner header -->
<frameset cols="20%,60%,20%" border="0" scrolling="no" framespacing="0" frameborder="0" bordercolor="blue">

<!-- Contains bounching ball -->
<frameset rows= "100%,*" border="0" scrolling="no" framespacing="0" frameborder="0" borderColor="blue">
<!-- Contains bounching ball -->
<frame src="TT_Top_LHS.html" name="TT_Top_LHS" marginwidth="30" marginheight="5" scrolling="no" resize>
</frameset>

<!-- Contains the STTA Name & TT Bats graphics -->
<frameset rows= "30%,*" border="0" scrolling="no" framespacing="0" frameborder="0" borderColor="blue">
<!-- Contains the "VETTS" Name -->
<frame src="TT_STTA_Header.html" name="TT_STTA_Header" marginwidth="0" marginheight="0" scrolling="no" resize>

<!-- Contains the TT Bats & TT Table graphics -->
<frameset cols="40%,20%,40%" border="0" scrolling="no" framespacing="0" frameborder="0" bordercolor="blue">
<!-- LH TT Bat -->
<frame src="TT_Bat_LHS.html" name="TT_Bat_LHS" marginwidth="0" marginheight="0" scrolling="no" resize>
<!-- "VETTS Name & TT Table -->
<frame src="TT_STTA_Table.html" name="TT_STTA_Table" marginwidth="0" marginheight="0" scrolling="no" resize>
<!-- RH TT Bat -->
<frame src="TT_Bat_RHS.html" name="TT_Bat_RHS" marginwidth="0" marginheight="0" scrolling="no" resize>
</frameset>

</frameset>

<!-- Contains Ball & Bat on Table -->
<frame src="TT_Top_RHS.html" name="TT_Top_RHS" marginwidth="53" marginheight="0" scrolling="no" resize>

</frameset>

<frameset cols="20%,*" border="0" scrolling="no" framespacing="0" frameborder="0" bordercolor="blue">
<!-- Navigation Frame -->
<frameset rows="86%,*" border="0" scrolling="no" framespacing="0" frameborder="0" bordercolor="blue">
<frame src="TT_Navigation.html" name="TT_Navigation" marginwidth="0" marginheight="0" scrolling="auto" Resize>
<frame src="Enter_STTA.html" name="TT_Counter" marginwidth="0" marginheight="0" scrolling="no" Resize>
</frameset>
<!-- Information Frame -->
<frameset rows="4%,*" border="0" scrolling="no" framespacing="0" frameborder="0" bordercolor="blue">
<frame src="TT_Date.html" name="TT_Date" marginwidth="0" marginheight="0" scrolling="No" Resize>
<frame src="TT_Information.html" name="TT_Information" marginwidth="0" marginheight="0" scrolling="auto" Resize>
</frameset>
</frameset>

</frameset>

</html>
=============================================================
User 463058 Photo


Ambassador
1,086 posts

The validator is simply telling you which attributes you can't use, so if you strip them out this is what you would end up with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!-- Above validates the following for HTML 4.01 -->
<html>
<!-- Created with the CoffeeCup HTML Editor -->
<!-- http://www.coffeecup.com/ -->
<!-- Brewed on 26/09/2004 18:28:44 -->
<head>
<title>STTA_Main_Page</title>
<meta name="keywords" content="Surrey, Surrey TTA, STTA, table, tennis, tabletennis, table tennis, tt, sport, ping pong">
<meta name="description" content="Surrey table tennis Association">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-3">
</head>
<!-- Frames are to be placed in the top of an -->
<!-- HTML page BEFORE the BODY tag -->
<frameset rows="100,*">
<!-- Three columns in the Banner header -->
<frameset cols="20%,60%,20%">
<!-- Contains bounching ball -->
<frameset rows= "100%,*">
<!-- Contains bounching ball -->
<frame src="TT_Top_LHS.html" name="TT_Top_LHS" marginwidth="30" marginheight="5" scrolling="no" frameborder="0">
</frameset>
<!-- Contains the STTA Name & TT Bats graphics -->
<frameset rows= "30%,*">
<!-- Contains the "VETTS" Name -->
<frame src="TT_STTA_Header.html" name="TT_STTA_Header" marginwidth="0" marginheight="0" scrolling="no">
<!-- Contains the TT Bats & TT Table graphics -->
<frameset cols="40%,20%,40%">
<!-- LH TT Bat -->
<frame src="TT_Bat_LHS.html" name="TT_Bat_LHS" marginwidth="0" marginheight="0" scrolling="no">
<!-- "VETTS Name & TT Table -->
<frame src="TT_STTA_Table.html" name="TT_STTA_Table" marginwidth="0" marginheight="0" scrolling="no">
<!-- RH TT Bat -->
<frame src="TT_Bat_RHS.html" name="TT_Bat_RHS" marginwidth="0" marginheight="0" scrolling="no">
</frameset>
</frameset>
<!-- Contains Ball & Bat on Table -->
<frame src="TT_Top_RHS.html" name="TT_Top_RHS" marginwidth="53" marginheight="0" scrolling="no">
</frameset>
<frameset cols="20%,*">
<!-- Navigation Frame -->
<frameset rows="86%,*">
<frame src="TT_Navigation.html" name="TT_Navigation" marginwidth="0" marginheight="0" scrolling="auto">
<frame src="Enter_STTA.html" name="TT_Counter" marginwidth="0" marginheight="0" scrolling="no">
</frameset>
<!-- Information Frame -->
<frameset rows="4%,*">
<frame src="TT_Date.html" name="TT_Date" marginwidth="0" marginheight="0" scrolling="No">
<frame src="TT_Information.html" name="TT_Information" marginwidth="0" marginheight="0" scrolling="auto">
</frameset>
</frameset>
</frameset>
</html>


Try this code, but keep a backup of what you have.
User 111435 Photo


Registered User
43 posts

Thanks Cary, I give it a go.
User 111435 Photo


Registered User
43 posts

From the above, I would assume that Border="0" and BorderColor="blue" are not recognised and that I will have to use some other method?
User 463058 Photo


Ambassador
1,086 posts

Correct, if you need it to validate.
User 111435 Photo


Registered User
43 posts

Thanks, it is only 'Border="0" ', that I need to validate (BorderColor="blue" is ignored), any clue on how I write the CSS code on how to do it?
User 463058 Photo


Ambassador
1,086 posts

CSS doesn't have anything for controlling the look of frames which are basically being ignored by web standards. That's why frames aren't validated as either transitional or strict. For these reasons, I wouldn't worry about the validation of the framesets, but rather the regular html pages within the frames.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.