CSS Help


#1

I was adding some attributes to my div on CSS in this current lesson.

div {
height: 50px;
width: 120px;
border-color: #6495ED;
background-color: #BCD2EE;
border-style: solid;
border-width: 3px;
border-radius: 5px;
margin: auto;
text-align: center;
text-decoration: none;
color: maroon;
}

It says to add whatever color/font I want so I did and it also says set text-decoration to none which I did but it is saying I didnt.. please help

Set your link's text-decoration to none. Give it whatever color or font-family you like!


#2

you set your divs text-decoration to none, not your link. Add another css selector for your link, take a second to think what the css selector should be (what we describe with the word link)


#3

so for the link selector would it be?

link {

}

sorta like the other ones would be:

div {

}

p {

}

ect


#4

For a link it would be

a {

}


#5

the answer to that question is yes, to this question:

is no, the css selector is wrong, don't forget the word link in this case is used to describe this html element:

<a></a>

in the same sense/fashion, we use the word paragraph to describe this html element:

<p></p>

and the css selector for a paragraph is p. Don't please don't this as a insult, i am trying to let you do most of the thinking, i find it gives a person a better understanding rather then just being provided with the answer

So, what do you think the css selector for link should be?


#6

oh o_O okay thanks. i would have never guessed this xd