What is the difference between a penile ulcer and syphilis?

Syphilis is usually found on the external genitalia such as the coronal sulcus, inner foreskin, circumcision, glans, tether, penis body and urethra, etc. It can also manifest as penile ulcers.