26. Links and Text Decoration

Can you please help me?

Instruction:

Links and text decoration
Great work! We’re almost there.

Instructions
Add a link to your HTML page using Link text 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.
You’re done! Revel in the glory of your newfound CSS knowledge for a moment, then head on to the project.

Index html page:

Result

HELLO

QUACK QUACK im a ducky

cool i didnt even know you could make link text

Stylesheet:

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;
}

I’m not sure what i did wrong… I’ve checked it many times… It keeps saying Oops, try again. Did you remember to set your link’s text-decoration to none;?

Thanks!

@s111834

You forgot to put a semicolon after this!

THANK YOU SO MUCH :smile: I had so much trouble

Is there anything else because i did that and it still doesnt work

@s111834
Can you print the code after the change + the error message you get?

@miniapple8888 you dont put a semi colon it’s one statement

@s111834 remove the semi colon
border: 1px solid #4682b4;
Also it’s best if you keep on one line for readability

I don’t see any error in your CSS can you paste in your HTML using this format

1 Like

@zainabrawat
Sorry, I got confused because the border and the solid #4682b4 were separated I thought they were two statements.:slightly_smiling:

1 Like

2 posts were split to a new topic: 25. size and borders

I see one big problem, which i am surprised nobody mentioned yet. You use link as css selector. Link is a word we use to describe this html element: <a></a>, in the same way/fashion/sense we use paragraph to describe this html element: <p></p>, and the css selector for paragraph is: p, so you might want to rethink the css selector for your link

Omg I was busy inspecting the img selector

2 Likes

2 posts were merged into an existing topic: Links and text decoration