If you are sexually active, practice safe sex. Correct use of latex condoms can help prevent transmission of HBV, but even when used correctly, condoms are not 100% effective at preventing transmission. Men who have sex with men should be vaccinated against both hepatitis A and hepatitis B.
If you inject drugs, don't share needles or other equipment.
Don't share anything (including grooming products) that might have blood on it, such as a razor, toothbrush, fingernail clippers, etc.
Think about the health risks if you are planning to get a tattoo or body piercing. You can become infected if the artist or person piercing you does not sterilize needles and equipment, use disposable gloves, or wash hands properly