[thelist] [HTML] current coding practices

Chris W. Parker cparker at swatgear.com
Fri Oct 25 12:19:01 CDT 2002


> -----Original Message-----
> From: Benjer [mailto:futureweb at macmail.com]
> Sent: Friday, October 25, 2002 1:19 AM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] [HTML] current coding practices
>
>
> Thanks for the pointers!

let me ammend some info that i wrote yesterday. (it is below)

> >> -----Original Message-----
> >> From: Benjer [mailto:futureweb at macmail.com]
> >> Sent: Thursday, October 24, 2002 7:39 AM
> >>
> > [snip /]
> >>
> >> So, how could i improve this type of website...
> >>
> > [snip /]
> >>
> >> Below are the results of attempting to parse this document
> >> with an SGML
> >> parser.
> >>
> >> *    Line 36, column 47:
> >>
> >>   <frameset rows="*,440,*" cols="*,780,*" border="0">
> >>                                                  ^
> >>
> >> Error: there is no attribute "BORDER" for this element (in
> this HTML
> >> version)
> >
> > i didn't go to the website to verify this, but since the parser even
> > attempted to validate that means you either manually overrode the
> > doctype or properly added one to your document.
> >
> > to make a long story short and to paraphrase what the
> parser said, you
> > can't have the "border" attribute in a <frameset> tag.
> therefore if you
> > want the error to go away, remove the attribute and put it in CSS.

i actually messed with a frames page later that day and thought i would
try to get it to validate. it turns out (as i assumed when i wrote this
letter)...

framset {
	border: 0px;
	}

...does not do what i thought it would do. instead, according to the
specification, the border attribute should now be contained in the
<frame> tag. so in this case, you do not need to do anything with CSS on
that one.


> >
> >> *    Line 47, column 9:
> >>
> >>   <noframes><body>insert our no frames content including
> >> links for searc ...
> >>            ^
> >>
> >> Error: element "NOFRAMES" not allowed here; check which
> elements this
> >> element may be contained within

i also think <body> cannot be contained within the <noframes> tag. i'm
not positive, but in the examples on the w3c site they do not have
<body> tags in the <noframes> tag, so i just left them out.


chris.



More information about the thelist mailing list