livewirewebsolutions
asked on
W3C compliance issue
W3C compliance issue with the following line.
<a href="http://visitor.r20.constantcontact.com/d.jsp?llr=u6nm85dab&p=oi&m=1103768205236" target="_blank"><img src="images/send.png" alt="send button" width="131" height="40" class="center"/></a>
I tested the page in the Validator link below. You can see all the issues that are all appearing on line 152 of my page. I received the code from constant contact. How do I fix this as it's clearly not W3C compliant.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.livewirewebsolutions.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices
<a href="http://visitor.r20.constantcontact.com/d.jsp?llr=u6nm85dab&p=oi&m=1103768205236" target="_blank"><img src="images/send.png" alt="send button" width="131" height="40" class="center"/></a>
I tested the page in the Validator link below. You can see all the issues that are all appearing on line 152 of my page. I received the code from constant contact. How do I fix this as it's clearly not W3C compliant.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.livewirewebsolutions.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices
Well, the validator clearly tells you that the problem is a non-escaped "&". You can check the chart for URL encoding sequnces here: http://www.w3schools.com/t ags/ref_ur lencode.as p, but unless you have some serious regulatory compliance issues, I'd leave it be.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try using the HTML5 doctype declaration. It looks to me like the validator is confused about a URL. Not sure why, but maybe the experimental doctype will help it get past the issue. The HTML looks valid to me.
On line 148, the querystring part of your Anchors href includes a couple of & symbols. For your document to validate you need to change those to &