| View previous topic :: View next topic |
| Author |
Message |
SpenceQ
Joined: 05 Feb 2009
Posts: 3
|
| Posted: Thu Feb 05, 2009 5:21 pm HTML Frame tutor errors? |
|
|
Hi Folks!
The "No Border" frames example when applied to my script renders 3 errors thru the W3 validator with no warnings. (sorry about the word wrap)
My doc:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
My 2 lines of code in ERROR:
<FRAMESET ROWS="186,563,85,*" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
<FRAMESET COLS="20%,753,*" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
My errors:
Line 11, Column 42: there is no attribute FRAMEBORDER".
<FRAMESET ROWS="186,563,85,*" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
Line 11, Column 58: there is no attribute "FRAMESPACING".
<FRAMESET ROWS="186,563,85,*" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
Line 11, Column 67: there is no attribute "BORDER".
…86,563,85,*" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
Could it be the tutorial example was written in XHTML?.
Am I missing something?
Thanks for the help!
Spence (newbie) :D |
|
|
sticks464
Joined: 31 Dec 2006
Posts: 2630
|
| Posted: Thu Feb 05, 2009 10:50 pm |
|
|
Try this
Code: <frameset rows="186,563,85,*" framespacing="0" border="0" frameborder="0">
<frameset cols="20%,753,*" framespacing="0" border="0" frameborder="0">
I haven't looked at the tutorial but I know it not written for xhtml. More than likely the validation errors come from not enclosing elements in quotes. |
|
|
SpenceQ
Joined: 05 Feb 2009
Posts: 3
|
| Posted: Fri Feb 06, 2009 7:54 am |
|
|
Ok Thanks. The snippet of code was cut and pasted directly from the tutorial.
see: http://www.htmlcodetutorial.com/frames/frames_famsupp_66.html
From the Tutor:
Attributes for <FRAMESET ...>
FRAMEBORDER = YES | 1 | NO | 0
FRAMESPACING = integer
BORDER = integer
Your suggestion below, are you sure?:
frameset rows="186,563,85,*" framespacing="0" border="0" frameborder="0">
<frameset cols="20%,753,*" framespacing="0" border="0" frameborder="0">
Framespacing is integer, and so is border.
Frameborder is unclear in the reference above.
Either 1 and 0 are strings, or it is integers, can't tell which.
--------------------------
Back to the axample, on execution of the example the script shows a reliance on XTML.
Do I need XTML and it's appropriate DOC declaration to get the frames to work?
---------------------------
I'm all new to this, thanks for the patience.:?
Spence |
|
|
sticks464
Joined: 31 Dec 2006
Posts: 2630
|
| Posted: Fri Feb 06, 2009 9:25 am |
|
|
The "0" is the integer. The tutorial does not tell you to put quotes around the integer but the w3c does.
An html doctype or an xhtml doctype can be used.
This DTD is equal to HTML 4.01 Transitional, but allows the use of frameset content.
Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
This DTD is equal to XHTML 1.0 Transitional, but allows the use of frameset content.
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
If you use an xhtml doctype the code would then be
Code: <frameset rows="186,563,85,*" framespacing="0" border="0" frameborder="0" />
<frameset cols="20%,753,*" framespacing="0" border="0" frameborder="0" /> |
|
|
SpenceQ
Joined: 05 Feb 2009
Posts: 3
|
| Posted: Fri Feb 06, 2009 10:45 am |
|
|
sticks464:
Thanks for the help.!
I tried it again, no show.
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<FRAMESET ROWS="186,563,85,*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0">
<FRAMESET COLS="20%,753,*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0">
Error list:
Line 12, Column 42: there is no attribute "FRAMEBORDER".
<FRAMESET ROWS="186,563,85,*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0">
Line 12, Column 60: there is no attribute "FRAMESPACING".
<FRAMESET ROWS="186,563,85,*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0">
Line 12, Column 71: there is no attribute "BORDER".
…5,*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0">
Boy this sure looks like a tough one!! :(
Still think it's in the declaration somewhere.
Spence |
|
|
PayneLess Designs
Joined: 28 Feb 2007
Posts: 4289
Location: MS
|
| Posted: Fri Feb 06, 2009 11:17 am |
|
|
| Can you post an online link to the problem page? Makes it easier to use my web tools to edit your page and CSS to see the effect. |
|
|
| |
|
|
|