Links and text decoration solved


Links and text decoration


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.

anyone know the working code, please i am very stuck, thanks :]


The HTML should be like* this: <a href="Anyurlyouwant">any text</a> and the CSS:
a {
text-decoration: none;

*Switch 'Anyurlyouwant' and 'any text' to your own choice.


sorry but all it says is this:
Oops, try again. Did you remember to set your link's text-decoration to none;?


In that case try making the CSS this;
a:link {
text-decoration: none;

It is quite specific about a:link I think, but I personally think it's confusing so I left it out.


still doesnt work

just to be sure do u do this on the style sheet? thanks for help


Yes, it's in the CSS file.


oh i was doing it right then but for some reason it says it is wrong


Oh I forgot about the colour! Sorryyy! The CSS should be like so:
a {
text-decoration: none;
color: #cc0000;


a {

i wrote this but it still wont work, i have had this problem for a while now but thanks for help


One last suggestion:
a {


can i see all your css code?


So, did anybody solve this problem, or just left it alone?


i wanted to help you, but in order to do so, i need to see your code. For all i know you missed a closing curly bracket somewhere

<!DOCTYPE html>
	<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
	    <h1>Links and text decoration</h1>
	        <p>This is cool</p>
	        <p>So I'll keep on practicing</p>
	            <img src=""/>
	    <a href="">Just a click away<a/>         


Can i also see your css?

h1 {
    font-family: Verdana, sans-serif;
    color: #576d94;
p {
    font-size: 18px;
    color: #4a4943;
    font-family: Garamond, serif;
img {
    border: 1px solid #4682b4;
    height: 100px;
    width: 300px;
a {
    text-decoration: none;
    color: #cc0000;


also, your link closing tag seems to have the slash at the wrong place (it should be </a> not <a/>)


saved me mate!!! tnx alot!


What did you do wrong?


i answered what he did wrong, if you need help, post your code