Hello all!
I just started CSS and could not get even the first part of this code correct. It is a basic question but would love the help.
* {
border: 1px solid red;
}
p {
color: green;
}
h1 {
color: maroon;
}
.title {
color: teal;
}
.uppercase {
text-transform: uppercase;
}
#article-title {
font-family: cursive;
}
a[href*='florence'] {
color: lightgreen;
}
a[href*='beijing'] {
color: lightblue;
}
a[href*='seoul'] {
color: lightpink;
}
a:hover {
color:darkorange;
}
.heading-background {
background-color: aqua;
}
#publish-time {
color: lightgray;
}
h5 {
color: yellow;
}
.author-class {
color: pink;
}
#author-id {
color: cornflowerblue;
}
h2.destination {
font-family: Tahoma;
}
.description h5 {
color: blueviolet;
}
.li h4 {
color: gold;
}
In the instructions it says:
In style.css , write a ruleset using the descendant combinator to select the <h4>
elements nested in the <li>
elements. Inside of the curly braces, write: [ color: gold; ]
Here is the problem:
https://www.codecademy.com/courses/learn-css/lessons/learn-css-selectors/exercises/chaining-and-specificity