Is it valid html if a link looks like that:
<a href="http://www.example.com/home.php?a=2&b=5">example</a>
Or it should be:
<a href="http://www.example.com/home.php?a=2&b=5">example</a>
Is it valid html if a link looks like that:
<a href="http://www.example.com/home.php?a=2&b=5">example</a>
Or it should be:
<a href="http://www.example.com/home.php?a=2&b=5">example</a>
The URL is a value in an HTML attribute, so the &
character should be HTML encoded, most commonly using the HTML entity &
:
<a href="http://www.example.com/home.php?a=2&b=5">example</a>
You can also use the HTML entity &
instead of &
.