How do we know <img src="/img/earth.png"> is trying to access a local file?

Because there's no https:// in the src attributeBecause the tag has no src attribute

Because there's no https:// in the src attribute.