I am new to CSS and I was just experimenting with it but I came up with a confusion in my code. Below are the two code fragments:
1.
.box h1 {
font-family: 'Jost', sans-serif;
text-align: center;
}
2.
h1 .box {
font-family: 'Jost', sans-serif;
text-align: center;
}
.box
is a class that I have written for my code.
Please tell me what difference it is when we write the code 1 & 2.