Oops, try again. Make sure you set your span tags to background-color: yellow!


#1

Okay, so... This says I am not doing it right but... yeah.

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>I Know Kung Fu (er, CSS)</title>
	</head>
	<body>
		<div>
			<h3 style="color:red">What's CSS for?</h3>
			<p>CSS is for styling HTML pages!</p>
			<h3 style="color:red">Why use it?</h3>
			<p style="background-color: yellow">It makes webpages look <span>really rad</span>.</p>
			<h3 style="color:red">What do I think of it?</h3>
			<p>It's awesome!</p>
		</div>
	</body>
</html>

#2

uhm... why do you use inline style while you should use the external stylesheet? I highly recommend to write in stylesheet.css, and show us what you got there so we can help you


#3

I don't really get the stylesheet.css yet, so I don't use it much. Only when I need to. But here is what I put in it.

p {
    font-family: Courier;
    background-color: yellow;
    
}

#4

You really should use it, whenever the exercises ask it of you, pretty much every lesson from now on will use the stylesheet. Okay, general css syntax:

selector {
  property: value;
  property: value;
}

now, the exercises ask you to set the spans background-color to yellow, you set your paragraph to background-color yellow. The css selector is equal to the html opening tag (<span> in this case) but without < and >, create a new span css selector, and set its background-color to yellow


#5

So, wait a second.... So I put this?

span {
     background-color:yellow
}

#6

Yes, i would put a semi-colon after yellow (this isn't mandetory, but i recommend it), but apart from that, it is good!


#7

thank you so much! You're a life saver!