How come the following is correct
.blog-post {
}
h1 {
text-align: center;
color: blue;
}
p {
font-size: 20px;
}
But this is not correct? They produce the same result. I understand that the first example that paragraph is not within the first header and is technically still its own separate property but is the code below still accepted syntax in development?
.blog-post {
}
h1 {
text-align: center;
color: blue;
}
p {
font-size: 20px;
}