footer.p vs “footer p” selector?

When you have a selector like footer.p, what you are matching is an element that looks as follows:

<footer class="p">Blah!</footer>

The dot in the selector refers to a class value :slight_smile:

1 Like