One-time passcodes without JavaScript

Tyler Sticka shows how to do OTP's (one-time passcodes) in his article Simple One-Time Passcode Inputs . The key element is the autocomplete="one-time-code" setting on the input element, which adds support for autofill from password managers or via SMS. The other attributes make typing in the code more convenient and activate client-side input validation: < form action = " … " method = " post " >…