Ping sends a packet to a remote or local host, requesting an echo. If the echo is returned, the site is up.
If the echo is not returned, it can indicate that either the site is down or there is some sort of network trouble along the way, although most of today's web site are behind a Firewall , which prevents the ping from returning.