html5 input type text max length code example
Example 1: input max length
<input maxlength="10" />
Example 2: text limit in html
<span style="
display:inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 13ch;">
Lorem ipsum dolor sit amet
</span>