Stetim94 Codecademy Moderator told me to put another paragraph <p></p> and there was one. But the example gave different syntax than the one I had


The example said:

<!-- HTML -->
<div id="menu"></div>

/* CSS */
#menu {
    color: #000000;

The CSS was the easy part, but as it turns out, the person told me to add it to the paragraph opening tag., as it says below .This is nothing like the example, which used a <div> tag.

The person told me the below. I know what a paragraph is, but these instructions should be clearer in these lessons.

/* in exercise 21 you added an h3 heading element and a paragraph and gave it a class of fancy. Now, in exercise 22 you need to add another paragraph:

<p>i am a paragraph</p>
and give it an id of serious (add the id to the paragraph opening tag)

Take your time to do this right, maybe even revisit 21, otherwise, you will get into trouble at 23
CSS - ID Selectors - #22.

`indent preformatted text by 4 spaces`
<!DOCTYPE html>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<!--Add your HTML below!-->
		<h3 class="fancy">Success and Wealth Would Be Fancy.</h3>
		<h3><p>Success come to me!</p></h3>
		<p class="fancy">What do I Fancy? Miracles coming!</p>
		<P id="serious">I AM SERIOUS!</P>
`indent preformatted text by 4 spaces`

/* CSS */

/*Add your CSS below!*/

.fancy {
        font-family: Cursive;
        color: violet;

#serious {
        font-family: Courier;
        color: #8C8C8C;


check the closing p tag of your I'm serious paragraph looks to be capitalized P


you should enough experience by now to realize how to add a style attribute to a paragraph opening tag, the example uses a div, nothing wrong with that. Otherwise you could just copy it, now there is a thinking step. That is good.

you only need one heading, remove the second one:

<h3><p>Success come to me!</p></h3>

make sure all paragraph opening and closing tag have a lowercase p

Also, the 3rd paragraph/4th element is for exercise 23, you are on 22 right? what is the error message?


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