Each box holds one digit, but the input handler accepts several at once and spreads them forward. That single path covers typing, pasting, and SMS autofill: autocomplete="one-time-code" on the first box lets iOS and Android offer the code from a text message, and it lands as six digits in one box.
inputmode="numeric" brings up the number pad on phones without the quirks of type="number" (spinners, scroll-to-change, dropped leading zeros). Backspace on an empty box jumps back, and the arrow keys move between boxes, so it feels like one field.
Each box has its own label ("Digit 3"), and the group is labelled by the visible heading, so screen readers understand the structure.