Genital herpes

Genital herpes is a sexually transmitted infection caused by the virus HSV, but what is that and how do we keep ourselves safe?