How would I create an HTML text box that exactly 3 characters can fit into it? I found this online:
HTML
Not reliably, since l and W have very different widths.
However, if you set the font to monospace, that helps. Then, you should be able to set size="3" on the input element, and in theory it should be exactly three characters wide.
monospace
size="3"