The simplest answer: a safe website is one that doesn't come bundled with viruses or malware.
Sticking to well-known, reputable sites and keeping your security software up to date goes a long way toward staying protected while you browse.