This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
The answer should be right, but still not correct...
Has anyone else encountered this? This is my code:
/Add your CSS below!/ h1 { font-family: Times, serif } h2 { font-family: Verdana, sans-serif } h3 { font-family: Vivaldi, cursive }
This is the error:
Oops, try again. Did you remember to put Times and a comma between font-family and serif?
Any thoughts? Thanks!
Answer 50cf391f71a29fb6820046e9
2 votes
Figured it out. I had to add semi-colons to the end of each font-family line.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
6 comments
its weird that in some exercises it doesnt ask to add semicolon at the end if you have only 1 property but it did in this one
It’s good to teach usage of semicolons, even though it wouldn’t be needed in some cases.
had the same problem weird though
You should only need to add the semi-colons at the end of the line if another selector/property follows before the closing }
Yup semi colons are important.
Good job!