So, with what you explained in the comments, I don’t know if I can see what you really need, as to the functions.
If you create a <textarea>
, you will have multiline for the user to write.
If you create a <textarea>
, and define white-space: pre;
, you will have the possibility to have an horizontal bar.
If you create a <textarea>
, define white-space: pre;
, and tweak a little with JS, you will get a box, with horizontal scrolling and the possibility of defining a maxlength
(Like in the example I made: https://codepen.io/anon/pen/MEJqBj