View Full Version : html code not validating

02-24-2008, 05:26 PM
the W3C validator doesn't like the following code:

<li/>Email address

validator error is:

Line 88, Column 16: character data is not allowed here.
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:

putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
forgetting to quote an attribute value (where characters such as "&#37;" and "/" are common, but cannot appear without surrounding quotes), or
using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.

02-24-2008, 05:29 PM
The error message tells you what the problem is. Did you read the error message?

02-24-2008, 05:38 PM
remove '/' form '<li/>' because that means that li is empty and change to:

<li>Email address</li>

best regards