By default, Drupal creates a user with uid=0 in the users table. This is the "anonymous user", and is a placeholder used by Drupal when a site visitor is not logged in.
If you want to do something special in a template for anonymous users, use the following code construct:
global $user
if (user->$uid == 0 ) {
<something for anonymous users>
}