Can't Move on from 'Lesson 24:Fall Back!' in CSS: An Overview


#1


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


i am stuck in lesson 24 and cannot move on because The compiler doesn't accept my code written in the 'stylesheet.css' file. And This the error message. But I have given a comma between Verdana and sans-serif and also tried by giving a space before and after the comma.

"Oops, try again. Did you remember to add a comma and sans-serif after Verdana?"
`
h1 {
font-family: 'Verdana', sans-serif;
color: #576D94;
}
p {
font-family: 'Garamond', serif;
font-size: 18px;
color: #4A4943;
}


#2

you don't need '' for Verdana and Garamond


#3

Thanks, It helped. By the way can you tell me why we don't need the quotes ' ' because in editors like sublime text or simply notepad without the quotes the command is not accepted.


#4

Here it'll not work.but you can have ' ' for family name.but remember Generic family names are keywords and must not be quoted.

for more details:

https://www.w3.org/TR/css-fonts-3/#basic-font-props

https://css-tricks.com/almanac/properties/f/font-family/


#5

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