This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

127 points
266d4b4396bb18d99d6e169c2209c57f?s=140&d=retro
Submitted by
Lauren Rasch
about 2 years ago

?/26 Can't figure out Error Message

Hi. So I keep getting this error message every time I try to submit:

Oops, try again. Did you remember to put some link text between your tags? You can't leave them empty!

However I do have link text. So I'm just very confused. This is what my HTML page looks like:

<!DOCTYPE html>
<html>
<head>
    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
    <title>Result</title>
</head>
<body>
<h1>Header</h1>
    <p>Paragraph Text. 
    <a href="facebook.com">Link text.</a>
    </p>
    <img src="http://static.rogerebert.com/uploads/review/primary_image/reviews/the-great-gatsby-2013/hero_gatsbywide.png"/>
</body>
</html>

3 votes

permalink

works fine, but i would use

<a href="https://facebook.com">Link text</a>

now you can actually click the link. If the code still doesn't work, try refreshing/restarting or switching browser

2455 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
about 2 years ago

7 Comments

266d4b4396bb18d99d6e169c2209c57f?s=140&d=retro Lauren Rasch about 2 years ago

Yeah, I don't know what's going wrong. Nothing helped.

593d545c83696644420003b7_64554016 stetim94 about 2 years ago

still not good?

266d4b4396bb18d99d6e169c2209c57f?s=140&d=retro Lauren Rasch about 2 years ago

Nope. it's still giving me the same error messages.

593d545c83696644420003b7_64554016 stetim94 about 2 years ago

all the refreshing/restarting/switching browser didn't work either? and sure css is correct?

604815cc79e6684439d2a8e382bc48a8?s=140&d=retro Buhler about 2 years ago

is it possible that you need the www.facebook.com?

593d545c83696644420003b7_64554016 stetim94 about 2 years ago

well, you have two options: https://www.facebook.com and https://facebook.com, if you don't specify http(s), codecademy will take you to a page on codecademy

Efc6c2281f8a6a8f8e0db43bd694cf33?s=140&d=retro JakeKimbo almost 2 years ago

Good solution on what you would use.