I'm pretty sure this is right; but I keep getting an erro1r


#1

I'm working on 7-26. Instructions are:

Add a link to your HTML page using <a href="url">Link text</a> tags (check the Hint if you need a reminder). You can link to any webpage.
On the CSS tab, change your link's text-decoration to none and its color to #cc0000.

Here is my code for step 1: a href="google.com">Google (I excluded outside brackets and closing tag so you can see.)

But I keep getting this error: Oops, try again. Did you remember to put some link text between your <a></a> tags? You can't leave them empty!

Is it just me? Or is there an error here?


#2

Can you show your whole code? just copy paste it to the forum


#3


<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
	<a href=stylesheet.css></a>
		<title>Result</title>
	</head>
	<body>
	<img src="http://bit.ly/NnVbxt">
	<h1>I'm getting better</h1>
	<p>Still doing it</p>
    <a href="google.com">Link text</a>
	</body>

#4

on line 4 you have this:

<a href=stylesheet.css></a>

this is what is causing the error, i don't know what they you are doing, but you link to stylesheet is already in the line above it, remove it .

for next time, use one of the two following options to make your code/indent is visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard


#5

Thanks so much! Must have carried over from the last lesson (or maybe I just screwed it up).


#6

A post was split to a new topic: 26. links and text-decoration


#7