Re: end tags...

\\ On Sun, 22 Sep 1996, Sunil Mishra wrote:
\\ 
\\ > \\ <P><FONT>Hello There</P>
\\ > 
\\ > In this case, the HTML is broken. I believe you have the option of either
\\ > ignoring the </p> and look for a </font>, or closing the <font> right
\\ > there. The latter would be the most prudent thing to do. I don't think
\\ > there is a "correct" answer for error recovery.
\\ 
\\ Well, since phrase markup is not allowed to cross block elements the
\\ assumption would be that the author intended to close the FONT tag. So I
\\ think a browser that would like to cover author's tracks should end the FONT
\\ right there with the /P.

Conversely, though less likely, what if the </p> was left there by
accident after an edit? It's impossible to tell, so both options are still
possible. Though I do agree that closing FONT is better.

Sunil

Received on Sunday, 22 September 1996 18:25:33 UTC