Lesson 10 href link


#1

  1. You're going places!

Oops, try again. Don't forget to make your href! Check out the example.

<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
	    <a> <a href="http://www.codecademy.com"> </a> 
	</body>
</html>


#2

You double typed <a>


#3

so I deleted "


#4

I deleted the but it still wont work


#5

can we see an updated version of your code?


#6

<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
	   
	  <href="http://www.codecademy.com"> </a> 
	</body>
</html>

#7

that didn't make it much better, lets look at your old code:

<a> <a href="http://www.codecademy.com"> </a>

you have two opening tags, while should have just one opening tag (attributes can be added to opening tags with creating additional opening tags)

the <a> is still important, but only one


#8

original code:





  <a> <a href="http://www.codecademy.com"> </a> 
</body>


#9

i know, but you have two opening tags:

<a><a>

you only need one, attributes can be added to the opening tag, without creating a second opening tag in the process


#10

What @stetim94 tried to tell you is that you need to delete the first "a" and type the rest in the tags like so:

<a href="http://www.codecademy.com"> </a>

#11

delete the first one you mean? The one without href attribute


#12

Yea ik sorry my bad. i edited it

So yeah, remove the first <a> and leave the rest as it is


#13

I tried deleting the first it but wont work so I got this new code

 <!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
	   
	  <a href="http://www.codecademy.com"> </a> 
	</body>
</html>


#14

still the same error message? There should text between the opening and closing tag, so you have to actually click on, to open the link


#15

Well that's the code you needed to type :slight_smile:


#16

the error code Im getting now Oops, try again. Don't forget to add a description! Check out the example.


#17

You need to describe the link you put.
To describe something, you do like:

<a href="www.codecademy.com">DESCRIBE</a>

where it says "DESCRIBE" you write something like:

<a href="www.codecademy.com">I love Coding</a>

Or anything you want that link to say and then, others will see this code as a HyperText like:

I Love Coding


#18

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