9.Class selectors, class fancy


#1

I am now on lesson 9, Class selectors. I made a h3 header and paragragh, and did the CSS for it. However, though everything looks like it should, color and all, it keeps saying: "Oops, try again. Did you give your h3 header a class of 'fancy'?"
Here is my code:

<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>Result</title>
</head>
<body>
<!--Add your HTML below!-->
<div class="fancy"><h3>Header of H3</h3>
<p>Paragraph. This is a paragragh.</p></div>
</body>
</html>

CSS:

/*Add your CSS below!*/
.fancy {
font-family:cursive;
color:violet;
}


#2

@sophiaaihpos
What it tells you is to give the class fancy directly to h3 not to a div (or divider). So you must enter the attribute class inside of your heading three not in the div tag.


#3

same for the paragraph, you should add the fancy class to the paragraph also, nice try to take a shortcut, but it isn't going to work


#4

Thanks, I got it now. As to the shortcut, I tried both ways, with and without the shortcut.


#5

Having a similar issue can't figure it out


#6

You need to create an HTML element with the class fancy.. For example create a paragraph tag and add the class fancy


#9


Do anything wrong!


#10

remove the div, and give the class of fancy directly to the heading an paragraph