21. Class selectors help


#1



https://www.codecademy.com/courses/web-beginner-en-WF0CF/4/3?curriculum_id=50579fb998b470000202dc8b


I am prompted with :"Oops, try again. Make sure to put some text between your

tags!"


<h3 class="fancy"> coding </h3>
		<p> is awesome </p>

My CSS is:
.fancy {
    font-family: cursive
    color: violet
}


#2

Hi @chipslayer20294

This piece of code

should have semicolon right after each statement (property & value)


#3

I am prompted with,"Did you give your paragraph a class of 'fancy'?"


#4

@chipslayer20294 Try removing spaces between coding and is awesome like this

<h3 class="fancy">Coding</h3>

#5

I am prompted with,"Did you give your paragraph a class of 'fancy'?"


#6

Yup! Just do as it tells in the error message and pls wrap paragraph in h3 like this:

<h3 class="fancy">
      <p class="fancy">Text here!</p>
</h3>

#7

Give <p> a class of fancy. Like this:
<p class="fancy">is awesome</p>


#8

That's wrong. You can't nest a paragraph inside a header!


#9

Oops,my bad! Thanks @wheatstraw


#10

Thanks, I forgot to do so, my bad


#11

4 posts were split to a new topic: I don't understantd


#12