Halloj!
Jag håller på att bygga om en av mina siter enligt konstens alla regler för att den ska validera. Problemet jag springer på är att i menyn validerar första raden
<a href="/index.jsp"><img src="/images/buttons/b_start.gif" width="120" height="14" alt="Startsidan" border="0" /><br />
men inte den som kommer efter
<a href="/sitemap/index.jsp"><img src="/images/buttons/b_site.gif" width="120" height="14" alt="Sitemap över vår webb" border="0" /><br />
fast jag tycker att dom ser likadana ut :q Är jag blind eller vad? Har suttit och stirrat på dessa rader rätt länge nu men hittar ingen skillnad.
w3c skrev:
Error Line 52 column 28: document type does not allow element "a" here; missing one of "object", "span", "bdo", "applet", "iframe", "tt", "i", "b", "u", "s", "strike", "big", "small", "font", "em", "strong", "dfn", "code", "q", "samp", "kbd", "var", "cite", "abbr", "acronym", "sub", "sup", "label", "ins", "del" start-tag.
<a href="/sitemap/index.jsp"><img src="/images/buttons/b_site.gif" width="120" h
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Understryckningen på sista haken (<a href="/sitemap/index.jsp">) är där validatorn tycker eljest än vad jag gör...
Någon som kan reda ut begreppen?