HTML form dropdown

Hi! I am trying to create 3 dropdown menus (day, month and year) for date. I have created one for day and one for month by typing each option, now I want to put the options from 1940 to 2005 in the “year” dropdown. Is there a better or easier way?