Hi, I have one page thats really throwing alot of code violations at validator.w3.org.
This is a CF site and when I view source from the browser and paste the code in the validator, I get like 190 errors all stemming from one piece of coding I think. I created a query that returns some industry definitions and set anchors at the top of the page so the user can automatically "go to" the definition he wants. Here is the code in question:
<a id="A"><a href="#A">A</a><a id="B"><a href="#B">B</a><a id="C"><a href="#C">C</a><a id="D"><a href="#D">D</a><a id="E"><a href="#E">E</a><a id="F"><a href="#F">F</a><a id="G"><a href="#G">G</a><a id="H"><a href="#H">H</a><a id="I"><a href="#I">I</a><a id="J"><a href="#J">J</a><a id="K"><a href="#K">K</a><a id="L"><a href="#L">L</a><a id="M"><a href="#M">M</a><a id="N"><a href="#N">N</a><a id="O"><a href="#O">O</a><a id="P"><a href="#P">P</a><a id="Q"><a href="#Q">Q</a><a id="R"><a href="#R">R</a><a id="S"><a href="#S">S</a><a id="T"><a href="#T">T</a><a id="U"><a href="#U">U</a><a id="V"><a href="#V">V</a><a id="W"><a href="#W">W</a><a id="X"><a href="#X">X</a><a id="Y"><a href="#Y">Y</a><a id="Z"><a href="#Z">Z</a>
and here is the error message:
Line 54, Column 660: 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 id="W"><a href="#W">W</a><a id="X"><a href="#X">X</a><a id="Y"><a href="#Y…✉
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>").
There is another error related to this design which I think is because of the use of the "#" symbol.
Not sure what to change or what to do differently to validate this page. Any help is greatly appreciated!