<!--A one year only input is not possible in HTML(only)--> <!--An alternative:--> <input type="number" min="1900" max="2022" step="1" value="2022" />