Video is not available... Embedded is previous playlist.
The input size
attribute specifies the visible width, in characters, of an input field.
The default value for size
is 20.
Note: The size
attribute works with the following input types: text, search, tel, url, email, and password.
<!DOCTYPE html>
<html>
<body>
<h1>The input size attribute</h1>
<p>The size attribute specifies the width (in characters) of an input field:</p>
<form action="/php/actionPagePost.php" method="post">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="Bintu" size="40"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Chaudhary" size="10"><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>