Link to home
Start Free TrialLog in
Avatar of livewirewebsolutions
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
Avatar of COANetwork
COANetwork

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.
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 &amp;