Help with Validation

I am trying to validate a website for work here but I keep coming across this error but I have not been able to figure out a solution for after toying around with possibly solutions for hours.

Error Line 121, Column 43: document type does not allow element “a” here
‘<a href=“#” title=“Live Chat Offline”>Live Chat Offline</a>’;

I have google searched and found a few others that had this problem because the parent container of the element mentioned wasn’t a block level element or something like that but I can’t figure out how to fix it with regards to my surrounding code.

Here is the link to the validator: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.heatsurgedirect.com%2Findex.cfm&charset=%28detect+automatically%29&doctype=Inline&group=0

Here is the link to the site im validating: [URL=“http://www.heatsurgedirect.com/index.cfm”]http://www.heatsurgedirect.com/index.cfm

Any help is greatly appreciated and thanks in advance!

Thanks much…that actually removed most of the validation errors…now I have a few others to work out and if I dont get them, I’ll post back here. Thanks again!

The code to create your link is in javascript within your html file and so the validator is parsing it as invalid.

Either put your javascript in an external file or wrap your javascript code in CDATA.

btw - it’s probably better to use DOM methods to create the link instead of .innerHTML like in your javascript.