May you kindly please explain when you are allowed to use a period before a “class” selector and when are you not because I have had instances where it would give me an error message if there’s no period (,) at the beginning of the “class” selector.
Putting a period before something means you are targeting a class with that name. So .address would mean you are targeting all elements that have a class of address.
Without the period you are targeting the element itself. So address would mean you are targeting any address element on the page.
<img> is not a class. It is an element and so you do not use
class selectors for classes example class="abc" that are within an element.
Thus you do not use the dot notation for class selectors