text limit in html
snippet in html

input max length

user3128

<input maxlength="10" />

text input max length

user9901


<input type="text" id="username" name="username" maxlength="10">
 

text limit in html

user8750

<span style="
  display:inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 13ch;">
Lorem ipsum dolor sit amet
</span>