26 will not work


#1

this is my html




Link text
/>



a


b




and this is my css
h1{
font-family:Verdana, sans-serif;color:#576D94;
}
p{
font-size:18px;color:#4A4943;font-family: Garamond, serif;
}
img {
height:100px;width:300px;border:1px solid #4682b4;
}
link {
text-decoration:none;color:#cc0000;
}
what is wrong?

26. Code is correct, but will not work
#2

couple of issues, this:

	<img src="http://bit.ly/NnVbxt"/>
	<a href="url">Link text</a>

should be inside body, not in head, and you might want to replace url with an actually url (for example with the url of codecademy or google). Speaking of the link (<a></a>)(would be better if we called it anchor, as it is officially called), you tried to target your anchor with this in css:

link {
    text-decoration:none;color:#cc0000;
}

but hold on, we just determined that link/anchor is just a word we use to describe a certain html element, in the same fashion we use paragraph to describe this html element:

<p></p>

yet the css selector for a paragraph is p, not paragraph, so what do you think the css selector for your anchor is?

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


#3

Good you made your own topic, but no need to both make your own topic and reply to an old topic.


#4

but it asks me if i had set my link's text-decoration to none;?
and i did but it will not work


#5

Because you use the wrong css selector (as explained above)


#6

show me what exactly i have to do


#7

link is your css selector in this bit of code:

link {
    text-decoration:none;color:#cc0000;
}

you need to change the css selector, since link is not the right css selector. As i explained, please read my first answer


#8

what do i put p instead of link?


#9

no, p would target any paragraphs you have, you want to target <a></a>, if you don't know how a css selector should be, read the instructions from this exercise


#10

O OK thanks i did not see that the first time