CSS: An Overview, Glitch in 2.6, "Check Yourself Before You Wreck Yourself"


#1



The output keeps giving me an error message which reads: "Oops, try again. Did you remember to make your h1 font-family Verdana?"


This is my code for the CSS stylesheet: 

/* Comments
h1 {
    font-family=Verdana;
}
h3 {
    font-family=Courier;
}
p {
    color=purple;
}
'R Us*/

and this is my code for the HTML sheet: 

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
	</head>
	<body>
		<h1>Change me to Verdana.</h1>
		<h3>Change me to Courier.</h3>
		<p>Make me purple!</p>
	</body>
</html>

Thanks!


#2

Instead of using an equals sign, then try using a :


#3

Tried it now, and it didn't work.


#4

I'm going to see if the code loads correctly in my desktop text editor - if it does, that means it's a glitch with codeacademy itself.


#5

Try making a comment that isn't surrounding your css, that way it will run.


#6

Tried that too, and, puzzlingly, it also won't run in my own text editor. So, it must be something I'm doing wrong...no idea what that might be, though.


#7

Your css syntax should be like this.

h1 {
font-family: Verdana;
}

/*comment*/

Take off the comment and put it after.

If the problem continues to bother you, then please post your updated code and the error message :slight_smile:


#8

Tried your solution, and you were right! I replaced the equals signs with colons, and put the comment all together at the bottom...I was wrong on the equals signs!

Thanks!


#9

Np, I'm glad to help :slight_smile:


#10

Having the same issue...however corrected itself when I enter as html and as css... had to enter in both.
I had to do this throughout the whole project. Also having problems showing titles.
good luck!


#11

Please, copy, paste, and format your code so that I can help you :slight_smile:


#12

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