<a> Trying to set up basic link

时间:2016-12-10 18:14:24

标签: html anchor

html beginner here. Just trying to set up a basic link. When I click my link, this is the address it takes me to, instead of just the google homepage. Anyone know why it includes users/name/desktop in front?

webpagefile:///Users/jeffreygers/Desktop/“ http://google.com

<!doctype html>

<html>
<head>
<title>Example Title Page</title>
</head>

<body>
<a href=“http://google.com”>Link</a>
</body>

</html>

1 个答案:

答案 0 :(得分:0)

<a href="http://www.google.com">Click Here</a>

在代码中使用上面的行。对我来说,这有帮助