By adding the attribute maxlength=”23″ you can limit the field to 23 characters. The browser won’t allow the user to enter anything longer than the number you specify. For those of you with recent versions of Firefox or Chrome, you can try out the demo:
As you may notice, I also am making use of a HTML 5 attribute: placeholder. This lets you state text that should be displayed in an input before a user enters data.