at first in html: <img src="images/cat.png" alt="cat">
in css: img{}
result: works fine
but I don’t want to use img, so I gave it a div.
then in html: <div class="cat"> <img src="images/cat.png" alt="cat"> </div>
in css: .cat{}
result: ALL CSS PROPERTIES ARE GONE!
WHAT DID I DID WRONG? isn’t this the correct syntax?