Lesson 10 href link

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

  1. You’re going places!

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

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>


You double typed <a>

so I deleted "<a " and it still didnt work

I deleted the but it still wont work

can we see an updated version of your code?

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

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

original code:

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

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

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>

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

Yea ik sorry my bad. i edited it

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

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>

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

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

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

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

1 Like

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