W3C compliance issue

livewirewebsolutions used Ask the Experts™
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.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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/tags/ref_urlencode.asp, but unless you have some serious regulatory compliance issues, I'd leave it be.
Developer & EE Moderator
Fellow 2018
Most Valuable Expert 2013
Run the validator again.  This time check all the options and you can clean up with htmltidy.  The link converts to

<a href="http://visitor.r20.constantcontact.com/d.jsp?llr=u6nm85dab&amp;p=oi&amp;m=1103768205236" target="_blank"><img src="images/send.png" alt="send button" width="131" height="40" class="center"></a>

Open in new window

and no validates
Most Valuable Expert 2011
Top Expert 2016

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.
Most Valuable Expert 2018
Distinguished Expert 2018

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 &amp;

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial