text limit in html

66

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>

input max length -

<input maxlength="10" />

Comments

Submit
0 Comments