Class selectors


#1

Hello,

Please help me with this :

HTML code

!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
	<div class="fancy">
		<h3>How are you?</h3>
		<p>I'm ok</p>
	</div>	
	</body>
</html>

CSS :

.fancy{
font-family:cursive;
color:violet;
}

And I received the message :Oops, try again. Did you give your h3 header a class of 'fancy'?

Thank you


#2

i like your thinking, unfortunately it doesn't work (which is shame), you really have to add the class to h3 and paragraph opening tag


#3

ok :slight_smile: I got it, thank you!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.