{Size Your Images} Why doesn't this code work? No mistakes found when checked

{Size Your Images} Why doesn't this code work? No mistakes found when checked
0.0 0

#1

I cannot see what is wrong with this code. I even input it into http://jigsaw.w3.org/css-validator/validator and NO MISTAKES WERE FOUND, yet I cannot pass the “challenge”. If the code is valid, why doesn’t it pass? What did I miss?


#2

class=“smaller-image” not “smaller image”


#3

First of all, please cut and paste code for help - it makes it easier if we want to try it out.

Secondly, on line 21, do I read correctly that it says class="smaller image" Are you missing a hyphen there?


#4

And FYI, a validator just checks that the code is valid, not that it does what it is supposed to do, the problem isn’t that the code was invalid, just that they asked you to give them one class of “smaller-image” and you gave them two classes, one called “smaller” and the other called “image”.