You can prevent tetanus by being vaccinated.
Vaccination for children:
The tetanus vaccine is given to children as part of the diphtheria and tetanus toxoids and acellular pertussis vaccine (DTaP). Diphtheria is a serious bacterial infection of the nose and throat. Acellular pertussis, also called whooping cough, is a highly contagious respiratory infection.
Children who do not tolerate the pertussis vaccine may receive the alternative vaccine called DT.
Vaccination for children ages 7 to 18:
A booster shot is recommended for children at age 11 or 12. This booster is called the Tdap vaccine. If your child didn't get a booster shot as this age, talk to your doctor about appropriate options.
Vaccination for adults age 19 and older:
A booster shot is recommended for adults once every 10 years. This may be one of two vaccines, Tdap or Td. If you weren't vaccinated against tetanus as a child or are unsure about your vaccination status, see your doctor about getting the Tdap vaccine.
Vaccination during pregnancy:
A booster is recommended during the third trimester of a pregnancy, regardless of the mother's vaccination schedule.
Other recommendations:
• Ask your doctor to review your vaccination status regularly.
• Check whether you are current on your vaccination schedule if you are planning international travel.
Courtesy: Mayo Clinic