- From: Ville Skyttä <ville.skytta@iki.fi>
- Date: 08 Jul 2003 20:40:55 +0300
- To: www-validator@w3.org
On Tue, 2003-07-08 at 20:22, Chris wrote: > > ...but I guess you're using the "/>" notation to end elements with a > > non-X(HT)ML DTD, which is not allowed in earlier HTML versions. So, > > the SGML parser disagrees with you about where the elements in your > > document begin and end. > > We are using the HTML 4.01 transistional DTD, where it is apparently > allowed (works on other pages). Ok, my guess was correct then :) > > Try replacing "<br />" with "<br>" and other similar ones if you have > > them (like link, hr, img etc), that should fix it. > > > > And while I'm at it, posting references to URLs that exhibit > > unexpected behaviour is always a good idea, that'll provide people on > > this list with enough information for useful problem analysis. > > > Sorry, it's behind a login, so I can't post a URL, however, here is a > larger chunk of the code. Good. > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> [...] > <p/> Here's another problematic one. Consider wrapping all the content of the paragraph inside <p>[paragraph content goes here]</p>. Another (uglier) way would be to replace <p/> with <p></p> or just <p>. BTW; if it wasn't a copy/pasto in the above, your document is missing the <html> root element (but the 4.01 Transitional DTD might actually allow it, I don't remember now). > Changing <BR /> to <BR> has no effect. I'd still say that the "/>" is the culprit, get rid of all instances of it, no matter what the element and I bet it works :) -- \/
Received on Tuesday, 8 July 2003 13:40:57 UTC