This forum is now read-only. Please use our new forums! Go to forums
i have cheaked it so many times and it still wont work
I have tried every method I know and it still wont work so can someone tell me were about’s I went wrong on this
h3 { font-family: Verdana; color: red }
p { font-family: Courier; font-size: 16px {
span{ background-color:yellow; }
Answer 5594304bd3292fc88a0000b5
Answer 5594e669d3292fbc79000574
0 votes
the last css property (of a css selector) doesn’t need a semi-colon, this:
h3 {
font-family: Verdana;
color: red
}
p {
font-family: Courier;
font-size: 16px
{
span{
background-color:yellow;
}
and:
h3 {
font-family: Verdana;
color: red;
}
p {
font-family: Courier;
font-size: 16px;
{
span{
background-color:yellow;
}
are both perfectly valid, but as this guy describes here perfect, it is bad practice to leave out the semi-colon.
So, what is causing the error? your p
css selector its closing curly bracket (}
) is a opening curly bracket.
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