Click here to Skip to main content
15,894,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose I have the following two anchor tags:
HTML
<a href="http://www.site.com/default.aspx?a=1&b=2">First Link</a>
<a href="http://www.site.com/default.aspx?a=1&amp;b=2">Second Link</a>

Both of those result in the correct URL, http://www.site.com/default.aspx?a=1&b=2. However, I'm not sure if that's just the browser being extra flexible. Is the HTML encoded URL the more correct version? For example, would one of those URL's be rejected in some standards conformance mode?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900