STDs, including herpes, are caused by bacteria, viruses or parasites that can be transmitted from one person to another through sexual contact. This transmission typically occurs during vaginal, anal or oral sex with an infected partner. It's important to practice safe sex and get tested regularly for STDs to protect yourself and others. If you have specific concerns about herpes or other STDs please consult a healthcare professional for personalized guidance and support.