PDA

View Full Version : Frames won't validate..


ogden2k
08-10-2003, 05:12 PM
A friends page will not valide using <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">.

Reason:
1. Line 10, column 43: there is no attribute "frameborder" (explain...).

<frameset rows="*,56" cols="*" frameborder="0">
^

The ^ is under the frameborder. How do I correctly add the frameborder="0" and have it comply?

Nightfire
08-10-2003, 05:28 PM
xhtml doesn't use frameborders so you might have to degrade to html 4, and for all I know there is nothing to replace it with css 1 or 2, but I read that it's been proposed for css3

ogden2k
08-10-2003, 05:36 PM
http://www.w3schools.com/tags/tag_frame.asp

That say that it does support that tag though?

oracleguy
08-10-2003, 08:12 PM
Yeah but see under that main table,Standard Attributes

Only allowed in XHTML 1.0 Frameset DTD!!
id, class, title, style

SDP2006
08-10-2003, 08:25 PM
Originally posted by ogden2k
A friends page will not valide using <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">.

Reason:
1. Line 10, column 43: there is no attribute "frameborder" (explain...).

<frameset rows="*,56" cols="*" frameborder="0">
^

The ^ is under the frameborder. How do I correctly add the frameborder="0" and have it comply?

<frameset rows="*,56" cols="*" frameborder="0">

should be

<frameset rows="*,56" cols="*" border="0">

ogden2k
08-10-2003, 09:29 PM
Originally posted by SDP2006
<frameset rows="*,56" cols="*" frameborder="0">

should be

<frameset rows="*,56" cols="*" border="0">
Tried that too, still doesn't validate.

oracleguy
08-10-2003, 09:32 PM
You just can't use frameborder with a xhtml frameset dtd. You'll have to downgrade it to HTML 4.01 to get it to validate. Just like the w3schools page specified.

ogden2k
08-11-2003, 01:35 AM
I decided to get rid of the frams and go with CSS and tables instead. Thanks for the help.

meow
08-11-2003, 02:26 AM
Originally posted by Nightfire
xhtml doesn't use frameborders so you might have to degrade to html 4, and for all I know there is nothing to replace it with css 1 or 2, but I read that it's been proposed for css3

That won't help since FRAMEBORDER isn't an attribute FRAMESET in HTML. XHTML is a reformulation of HTML in XML, remember? ;)

FRAMEBORDER is an attribute of FRAME though... maybe that will work for you ogden2k? If you change you mind, I mean. :p