CSS Selector Priority
Let's say we have the following code:
p {
color: red;
}
p {
color: green;
}
As you can see, the paragraphs are first set to red, and then below that to green. In this case, the second entry will override the first and the paragraphs will become green.
Tell me what size the headers will be after running the following code:
<h2>text</h2>
h2 {
font-size: 20px;
}
h2 {
font-size: 30px;
}