Href link not working


#1

Hello everyone, this is the code i am using, I have saved the following code with .html extension

<html>
<body>    
<p>
    <a href="www.google.com">clicke here</a> 
</p>      
</body>
</html>

After opening the file in chrome, when i click the link it is not redirecting to google, it is redirecting to

file:///C:/Users/panda/Documents/www.google.com

what is the reason behind that? Thank you


#2

it will open the file www.google.com in current directory, if you want to link to another website you need to use http(s)


#3

thank you got, If i get any further doubts regarding links, shall i post here or want to open new thread?


#4

You can make a new topic, then you might get help faster, then you can reply here you made a new topic (include topic url)


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.