Possible functionality improvement?

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 &amp; 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