Amir
Amir

Reputation: 65

Trying to link to external websites

<html>
<body>
<a href = "www.google.com" target = "blank_">google</a>
</body>
<html>

What I get: www.mysite.com/www.google.com

What I want to get: www.google.com/

Upvotes: 0

Views: 104

Answers (2)

MasterDev
MasterDev

Reputation: 79

Thats because you havent written http with the url,

try this

<a href="https://www.google.com" target="_blank">Google</a>

Upvotes: 0

vim_
vim_

Reputation: 2170

You need to have http:// at the beginning of the URL.

<html>
<body>
 <a href = "http://www.google.com" target = "blank_">google</a>
</body>
<html>

Upvotes: 1

Related Questions