Size Attribute Description:
size attribute defines the size of HTML form input fields. This is usually defined as the number of characters that should be visible in the form field. But CSS can change the font size and the size of the form field to make this inexact.
The Size Attribute is Used with These Tags:
The Size Attribute Contains:
size attribute contains a positive integer that indicates the number of entries that should be visible in the field. In most cases, this is the number of characters.
Note: this is not a restriction on how many characters can be entered into the field, just the size of the box to collect the data.
Size Default Value:
size attribute takes a default value based on the browser and the field type.
Size is Valid in HTML Versions:
- HTMl 4.01
- XHTML 1.0
- HTMl 3.2
Size Attribute DTD:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">