What is the real value of creating such a form in HTML? As far as I can tell, such forms are made so that computer programs can quickly identify incomplete or incorrect fillings and / or allow visual inspection of manually completed ones.
If the real need here is to create such a form from the input values, I believe that the correct design would be to provide a regular form input element, and then the process that creates the expected format.
Separation of problems is important. In this case, forcing the user to enter the symbol of the symbol-symbol will become a bad experience, which will force the developer to place javascript code only to make sure that after entering the letter the cursor can move to the next place. No need to mention which versions will look.
There is a reason why such a component has not yet been built. The reason is the poor UI / UX interface.
Hope this helps with your solution.
source share