size

Jump to: navigation, search

size

This article is Not Ready.


Summary

This article outlines the HTML attribute "size", which allows the user to specify a width in characters of an <input> element.


Applies to  ?

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.

Examples

HTML

<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>


Syntax

Standards information


See also

Related articles

Fonts












  • size


HTML
















  • size



































… further results

Text




















  • size




















Related pages (MSDN)

  • baseFont
  • font

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]