the questions is how does he know how he looks like?
is he looking at other spiders? maybe he looked into a reflection on the water? or does he simply just know?
Don't all animals "know" to some degree? After all, they "know" they're attracted to mates of the same type. Though I guess sometimes a dog humps a leg.