Number input type that takes only integers? September 27, 2022 by Tarik The best you can achieve with HTML only (documentation): <input type="number" min="0" step="1"/>