There is a relationship between general knowledge and general attitude, between general attitude and common practice, between general knowledge and general practice in the prevention of hepatitis B virus infection (p <0.05).