Well... no, this won't work, or shouldn't. TITLE in html is not defined as
an empty element (i.e., one without content), so it cannot be legally
treated as such (whether you use <TITLE>, <TITLE/>, or <TITLE />). It needs
both an open tag and a close tag to be valid.
Now to what degree a browser requires valid html (and which html at that)
is another question. Obviously in this case, Netscape is more forgiving of
loose code.
--David Ruddy
At 07:38 AM 2/2/00 +0000, David Pawson wrote:
> >Actually, as I understand it, the construction <TITLE/> should
> >be the same as <TITLE></TITLE>.
> >I guess Netscape recognizes this construction, but IE doesn't?
>
>Tweak required.
>
>Try <title />
>
>Insert the space before the forward slash.
>Same with <br />
>
>It keeps the browsers happy :-)
>Remember you're coming from XML.
>HTML is SGML whereas empty elements < />
>are XML syntax.
>
>regards, DaveP
|