Maximum number in an input text box

Hello I am new.

Could anyone tell me how to limit the maximum number you could put in an input textbox?
I want the maximum to be 10 and the minimum to be 0.

Thank you in advance