got this code:
<li> <a href="../index.htm" accessKey="h" title="Homepage">
<div class="underline">H</div>ome</a> </li>
the xhtml validator does not like the nested <div class="underline"> within the <a> tag.
anyone know how to correct?
Yes the <div> is block level and the list anchor isn't use the <span> and not the <div>.
now it says no attribute accesskey.
do i have to change the doctype?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
No, I hope you have something like:
<a href="../index.htm" accesskey="h" title=
Though I don't really think it is too sensible to use underlined letters.
Since there is a lot of conflict with assistive devices and programs I mainly stick to numbers for that reason; http://www.xhtmlcoder.com/worthvalley/ with exception of skip.
i found my problem :rolleyes:
I was using accessKey not accesskey.