W3C home > Mailing lists > Public > www-validator@w3.org > May 2004

Subject=[VE][65] New Error Message Suggestion

From: Jorge Laranjo <jorge.laranjo@gmail.com>
Date: Sat, 29 May 2004 18:39:05 +0100
Message-ID: <5e180abd0405291039a3a8ac6@mail.gmail.com>
To: www-validator@w3.org

Hi there.
I submited a file *.html yo you site.
This is the output:

This page is not Valid XHTML 1.0 Transitional!
Below are the results of attempting to parse this document with an SGML parser. 

Line 338, column 7: document type does not allow element "ul" here;
missing one of "object", "applet", "map", "iframe", "button", "ins",
"del" start-tag


The mentioned element is not allowed to appear in the context in which
you've placed it; the other mentioned elements are the only ones that
are both allowed there and can contain the element mentioned. This
might mean that you need a containing element, or possibly that you've
forgotten to close a previous element.

One possible cause for this message is that you have attempted to put
a block-level element (such as "<p>" or "<table>") inside an inline
element (such as "<a>", "<span>", or "<font>").

My code is:

<div id="container">
 <div id="mainnav">
   <li><a href="#" title="Home">HOME</a></li>
   <li><a href="#" title="Dados sobre a empresa">EMPRESA</a></li>
   <li><a href="#" title="Parques de Estacionamento">PARQUES</a></li>
   <li><a href="#" title="As &uacute;ltimas not&iacute;cias da
   <li><a href="#" title="Morada e contactos da empresa">CONTACTOS</a></li>

Where is the error?
Here is part of the css file:

		margin: 1em auto;
		width: 750px;
		text-align: left;
		background-color: White;
		color: #505367;
		border: 1px solid black;

		background-color: #9FA41D;
		color: #272900;
		padding: 2px 0;
		font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
		font-size: x-small;
	#mainnav ul
		margin: 0 0 0 20px;
		padding: 0;
		list-style-type: none;
		border-left: 1px solid #C4C769;
	#mainnav li
		display: inline;
		padding: 0 10px;
		border-right: 1px solid #C4C769;
	#mainnav li a
		text-decoration: none;
		color: #272900;
		background-color: transparent;
	#mainnav li a:hover
		text-decoration: none;
		color: #fff;
		background-color: #272900;

Thank you.
Received on Saturday, 29 May 2004 17:16:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:41 UTC