Re: 3 Errors I don't really understand...

h.zutt@freenet.de wrote:

> I am getting three errors out of the validator, I do not really
> understand:
>
> http://validator.w3.org/check?uri=http%3A%2F%2Fwww.schoen-gesund.net%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

The first error, reported on line 201, is caused by the tag <p> on line 199. 
As it has no closing tag, the validator treats the <div> tag on line 201 as 
being inside a <p> element, which is forbidden by the syntax. This problem 
would not exist in HTML 4.01, since it allows end tag omission and 
implicitly closes the <p> element with an implied </p> tag when a 
block-level element's start tag like <div> is encountered. On the other 
hand, though a <p> element with empty content, <p></p> is allowed, it is 
explicitly frowned upon in HTML 4.01 in prose. The recommended way to create 
vertical spacing is to use style sheets.

The second error message is caused by the first error – as the validator 
still thinks it’s inside a <p> element.

The third error message is caused by the <ul> element with empty content:
<ul class="contentlist"></ul>
This is disallowed by HTML syntax, which requires at least one <li> element 
inside a <ul> element.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 

Received on Saturday, 11 December 2010 20:10:04 UTC