As the title suggests, I want to know the meaning of a and h1 in '#main-navigation h1 a'. Here is the code:
#main-navigation {
...
}
#main-navigation a {
...
}
#main-navigation a:hover,
#main-navigation a:active {
color: #cf79f1;
}
#main-navigation h1 a:hover,
#main-navigation h1 a:active {
color: white;
}
tag in html a is tag in html.... i'll suggest to read some tutorial about css selectors
– Sfili_81 Jan 12 '22 at 10:02elements in your html.
– Salman A Jan 12 '22 at 10:02` element and inside the `
– Frnak Jan 12 '22 at 10:03` element you have an anchor tag ``. You specific the styling more precisely, because you don't want to style all title or anchor tags, only the ones inside the main-navigation element