I'm trying to include a link in my page that will link directly to google search results (as opposed to linking to a predetermined search, as in this question).
I tried this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<a href="http://www.google.com&q=sports">click me</a>
</body>
</html>
The ampersand gets mangled, the url comes out as http://www.google.com%26q%3Dsports
instead of http://www.google.com&q=sports
.
What's the right way to do this?