How does /etc/hosts or /private/etc/hosts work on 10.11?

How does /etc/hosts or /private/etc/hosts work on 10.11?

I've been trying to test my knowledge of what /etc/hosts is but I'm not getting anywhere. From understanding the point of /etc/hosts is it can round host names to ip addresses. So if you put the ...