Adding a link to a web site

Lesson 9

Add a new paragraph tag and center it

<p align=center>


 

Type in the text that you would like to be displayed on the page

<p align=center>This is my link


Now we need to add a command that lets our code know that this will be a link.

we do this by adding am <a> tag. This tag DOES need a closing counterpart

add your <a> tag before your text and your </a> after your text.

<p align=center><a>This is my link</a>

Now of course we will have to add the statement telling our <a> what the web site is that we want to link to.

To do that we have to add an href statement (hyperlink reference) that states the web address of the site that you want to link to.

<p align=center><a href=http://www.pixelbit.com>This is my link</a>

here is the whole link code

<p align=center><a href=http://www.pixelbit.com>This is my link</a>

If it displayed on your page like this

This is my link

 

DANCE!