HTML - [4] Adding a link
Programming Stuff :: HTML :: HTML/XHTML
Page 1 of 1 • Share •
HTML - [4] Adding a link
HyperText Markup Language
HTML
[Adding a link]
To add a link to your website you should add this part of code to it:
<a href="http://www.mysite.com">Click Here To Go To My Site</a>
Explaining:
1 - The URL to the website you want to link to; http://www.google.nl, http://www.microsoft.com
2 - The text displayed on the website that is clickable.
You need to always write http:// before any web address.
Code you should have now:
Extra:
to make an email link you shouldn't insert an website adress, you should use:
HTML
[Adding a link]
To add a link to your website you should add this part of code to it:
<a href="http://www.mysite.com">Click Here To Go To My Site</a>
Explaining:
1 - The URL to the website you want to link to; http://www.google.nl, http://www.microsoft.com
2 - The text displayed on the website that is clickable.
You need to always write http:// before any web address.
Code you should have now:
- Code:
<html>
<head>
<title>My Website</title>
</head>
<body bgcolor="Green">
<h1>Welcome to my website!</h1><br>
<h3>This is the first website I've made</h3><br>
<br>
<h3>Greeting from me.</h3><br>
<a href="http://www.google.nl">Go to google..</a>
</body>
</html>
Extra:
to make an email link you shouldn't insert an website adress, you should use:
- Code:
<a href="mailto:me@hotmail.com">Email Me</a>

Robin- Moderator

- Number of posts: 11
Age: 18
Location: Holland
Registration date: 2008-08-31
Permissions of this forum:
You cannot reply to topics in this forum





