The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.
This article is Not Ready.
This article outlines the HTML attribute "size", which allows the user to specify a width in characters of an <input> element.
The size attribute specifies the visible width, in characters, of an <input> element.
Note: The size attribute works with the following input types: text, search, tel, url, email, and password.
Tip: To specify the maximum number of characters allowed in the <input> element, use the maxlength attribute.
<form action="demo_form.asp"> Email: <input type="text" name="email" size="35">
PIN: <input type="text" name="pin" maxlength="4" size="4">
<input type="submit" value="Submit"> </form>
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 15.2.2 (Deprecated)
Related pages (MSDN)
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]