Thank you for answering my question. I went to my ob/gyn today and everything looks just fine, so of course I was freaking out prematurely.
I will be going to the local health department, which my doctor recommended, and get tested for all STI's.
Particular strains of human papillomavirus (HPV) do not tend to infect the anus rather than the genitals; all genital types can infect either area. So the fact that your husband had anal warts does not mean you are at risk for anal warts. Hr probably also had a genital area infection, and you are more at risk for warts of the genital area, not the anus. As to whether you or your husband was infected first and infected the other, there is no way to know (unless one of you has had other partners during your marriage; see the last paragraph, below).
The natural history of genital human papillomavirus (HPV) infections, with both the wart-causing and non wart-causing types, is that they clear up on their own after several months to a couple of years. Since your husband has been infected for a long time, if you have not yet had overt, recognizable warts in the genital or anal area, most likely you have been infected but no longer carry the virus. To be safe, you need to be on the lookout for warts, both genital and anal, and see your health care provider if something develops. Also, follow standard recommendations about routine pap smears.
Finally, you need to be checked for other STDs, including HIV, if that hasn't been done. It seems likely your husband might have had other sex partners during your marriage. Also, anal warts are particularly common in gay men. Many strictly heterosexual men get anal warts as well, probably because of autoinoculation, i.e. local spread of the virus, so this doesn't mean your husband is gay or bisexual. On the other hand, it raises this possibility. Unless you are 100% certain he hasn't had other partners, play it safe and have an HIV test, as well as tests for gonorrhea, chlamydia, and syphilis.
If uncertain about any of this, ask your Ob-gyn provider; or you can visit your local health department STD clinic for expert advice.
Good luck-- HHH, MD