Viral STIs are primarily transmitted through vaginal, anal, or oral sex. Some, like HPV and HSV, can also be transmitted through skin-to-skin contact. The use of condoms and dental dams can significantly reduce the risk of transmission, but they are not 100% effective.