|
Posted by pistacchio on September 7, 2007, 1:19 pm
Please log in for more thread options
> pistacchio wrote:
>
> > the site i'm working on (http://www.gdp-portfolio.net/as/) is html
> > 4.1 strict valid.
>
> > <a href = "#"><button><div id = "Bmenu2" onClick = "document.location
> > = 'index.php?p=Chi'" onMouseOut = "javascript: menu.nascondi(2);"></
> > div></button></a>
>
> I'm surprised this validates, since you have a block level element
> (<div>) within an inline element (<a>), which is invalid. The
> superfluous <button> in between is probably confusing things.
>
> There should be no reason for this markup mess, but then I don't know
> what your menu code does. I'll just comment that using such a navigation
> system is unfriendly to both users and search engines. You should
> rethink the whole thing.
>
> --
> Berg
thnaks for the reply. the "markup" mess is required by the validator.
get rid of the <button> tag and you get:
document type does not allow element "DIV" here; missing one of
"OBJECT", "MAP", "BUTTON" start-tag
my code is a navigation menu. you click on the buttons (that are divs
with a proper background image). the links, translated from italian,
are nothing extremely obscure: home, who we are, services.. i think
your comment on user-unfriendliness is interesting. i think the
avarage user has no problem in inferring that when on the menu of a
page there is a link with written "who we are", you can click on it
and have information on "who we are".
|