Can someone please explain to me why when I run this code the first two css background properties do nothing where as the src that has no tag runs just fine?
Of the top of my head, when you first declare the style, you target it with .body - the period indicates it is class. But body is an element, not a class - try it without the period.
This refers to any element with that’s given the 'body' class, not necessarily the <body> element itself (note the dot before body here; you want to remove it).
I hadn’t noticed the " that was missing though, thanks. I’ve now realised the src without an img tag worked because it was being recognised as an extension of the body tag