CSS Selectors - Review ID selectors, #22


#1

CSS Selectors - Review ID selectors, #22.

Keep getting error message: Oops, try again. Did you give your new paragraph an ID of 'serious'?
indent preformatted text by 4 spaces

<!DOCTYPE html>
<html>
    <head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
	<div>
		<!--Add your HTML below!-->
		<p>"Succcess and wealth come to me now. NOW!"</p>
		<div id="serious"</div>
		<p>I cast out all poverty!</p>
		</div>
		</body>
		</html>

/*Add your CSS below!*/

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

#2

Use the </> button when pasting your code to get it to show correctly. Also, if serious is an ID, you need to put a # before it in the css to signify that it's an ID. So:

#serious {
    code
}

#3

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

<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


#4

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