Lesson 22


#1


Lesson 22: ID selectors


Did you give the #serious ID a font-family of Courier?


In HTML:
<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<!--Add your HTML below!-->
		<h3 class="fancy"> This is a fancy h3!</h3>
		<p class="fancy"> this is the P line.</p>
		<p id="serious"> this is my line.</p>
	</body>
</html>

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

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


#2

try removing the quotation mark after the closing curly bracket:

.fancy{
    font-family:cursive;
    color:violet;
}" <- this one

#3

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