HTML - [4] Adding a link

Post new topic   Reply to topic

View previous topic View next topic Go down

HTML - [4] Adding a link

Post  Robin on Mon Sep 01, 2008 9:59 pm

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:

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
Moderator

Number of posts: 11
Age: 18
Location: Holland
Registration date: 2008-08-31

View user profile

Back to top Go down

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You cannot reply to topics in this forum