Could beinfection of Glans Penis
Thanks for your query,based on the facts and photographs that you have posted it appears that you have infection of glans penis(Ballanitis)
I shall be happy if you can post me few more details to help me in making comments on your problem.
1) Did you have unprotected sex before you noticed these bumps? If so does your female partner have any vaginal infection?
2) Do you have any itching?
3) Do you have any urinary symptoms?
Mostly it is neither Herpes
nor Hpv but bacterial infection of glans penis (Ballanitis)
You need to take broad spectrum antibiotic like Cefexine along with anti inflammatory drug like Diclofenac
twice daily.along with topical antibiotic
ointment like Neosporin
Ensure to wash your genitals with warm water twice daily.
Ensure to avoid sexual encounters till it heals up completely.
Hope I have answered your query ,please feel free to ask if you have more questions ,
I shall be happy to help you
Thanks and Regards.