Filter (Advanced Search)
Downloads
0
Views
225
Video

Video is not available... Embedded is previous playlist.

Details

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>



Ad