1<form action="/action_page.php">
2 <label for="username">Username:</label>
3 <input type="text" id="username" name="username" maxlength="10"><br><br>
4 <input type="submit" value="Submit">
5</form>
1<span style="
2 display:inline-block;
3 white-space: nowrap;
4 overflow: hidden;
5 text-overflow: ellipsis;
6 max-width: 13ch;">
7Lorem ipsum dolor sit amet
8</span>