Type this into your html code (within the body tag).

<a href="http://www.w3schools.com">This is a link</a>

 

• What happens when you view this in a browser?

• What happens when you click on the link?

 

To do

Make a new text file called hello.html

Enter this text:

<!DOCTYPE html>
<html>
<body>

<h1>Hello</h1>

<p>This page is luge and legal.</p>

</body>
</html>

 

• Edit index.html

Add in this code.

<a href="http://www.apple.com" >click me</a>

 

 

 

• Open index.html in your browser. Click on the link.

What happens? Do you see the other page?

 

• What does the following code do?

<a target='_blank' href="http://www.apple.com">clicke me</a>