Reply to Passing Validation

Your name:

Reply:


Posted by Mohawk Mawk on 05/23/07 06:59

I can't pass the W3C Validation because it wants to compromise my
sites functionality.
Here is the problem
Site: http://bjorntoday.com/?page=Imprint&lang=E
Validation:
http://validator.w3.org/check?uri=http%3A%2F%2Fbjorntoday.com%2F%3Fpage%3DImprint%26lang%3DE&charset=%28detect+automatically%29&doctype=Inline
I have 9 errors
one is the <marquee> Tag error, never mind that.
the other 8 are due to the fact that a <div>, can't be in the <a>
tag??
whats up with that?
the reason i need the <div> tag to be in <a> is so that i can click
the div to open a url.
e.g.
See the flags on top of the page? The British and the German.
This is the HTML
<a href="?page=Imprint&lang=E"><div id="langE"><span>English</span></
div></a>
This is the CSS
#langE{
background: transparent url(images/e.jpg) no-repeat top left;
width: 30px;
height: 15px;
}
#langE span{display:none;}

Now i know i could just insert an <img> tag but I won't do that
because the site must be visually changeable via css.

Other problem are the rollover buttons.
<a href="?page=GuestBook&amp;lang=E"><div class="link">Guestbook</
div></a>
the <div> is there so the surface around the actual text is clickable.

Is there hope for me? or will the page just never pass? (excluding the
marquee tag)

bless
mawk

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация