Human Papillomavirus is one of the sexually transmitted infections (STI). It is mostly transmitted when you have oral, vaginal, or anal, sex with an infected person who has that virus, mainly through anal or vaginal sex. This can affect you after so many years of having sex with that infected person.
Most of the sexually active persons will be the victims of HPV at least once in their lifetime. Most of the teenagers in their 20s will experience this infection.
Although HPV is categorized as a sexually transmitted infection, you cannot say HPV affects a person only through sexual intercourse. There are some other ways by which one can get affected by HPV apart from having sex with an infected person. Even HPV can get transmitted from mothers to babies during birth.