I would like to force the user to type their age. I also would like to make sure they only enter between 18-99. Is that possible with HTML5 attributes like
HTML5
Your code works fine. Check this fiddle (I'm using latest chrome)
My only concern you is your pattern="[1-8][0-9]" can simple use this
pattern="[1-8][0-9]"
pattern="[0-9]{2}"