- From: David Branford <bran0096@flinders.edu.au>
- Date: Thu, 08 Jun 2006 13:52:58 +0930
- To: www-validator@w3.org
Received on Thursday, 8 June 2006 13:54:39 UTC
Hi all,
When using the W3C validator recently at http://validator.w3.org/ on my
page (doctype XHTML 1.0 Transitional - <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) I received
the error:
Error /Line 82 column 93/: document type does not allow element "div"
here; missing one of "object", "applet", "map", "iframe", "button",
"ins", "del" start-tag.
|...m menu-item-green submenu2-item"><div*>*How to Write Aims & Learning</div><
....which I don't think is correct; because I have in my stylesheet:
..submenu2-item {
display: block;
}
Thus, instead of putting a block element (<div>) inside an inline element (<a>) which would indeed be erroneous, I think I have put a block
element inside a block element... is there anything wrong with my logic here?
Regards,
David
<e-mail: david@davidbranford.net>
|
Received on Thursday, 8 June 2006 13:54:39 UTC