1Syntax
2<input size="number">
3
4Example
5An HTML form with two input fields with a width of 50 and 4 characters:
6
7<form action="/action_page.php">
8 <label for="fname">First name:</label>
9 <input type="text" id="fname" name="fname" size="50"><br><br>
10 <label for="pin">PIN:</label>
11 <input type="text" id="pin" name="pin" maxlength="4" size="4"><br><br>
12 <input type="submit" value="Submit">
13</form>