The HTML Attribute reference

"size" - html Attribute

  • Specifies the height of the rule. The default value for this attribute depends on the user agent.
  • You should use styles (CSS) instead.

Value(s):
Used in the element(s):
Elements Description
basefont (deprecated) The BASEFONT element is used to set a default font size. You should include the element in the header section ('head' ) of the document. You should avoid using this as It is only supported by Internet Explorer. Attribute, size, usage:
  • Sets the size of the font.
Possible attribute, size, values for this element:
Attribute value description
An integer between 1 and 7. This sets the font to some fixed size, whose rendering depends on the user agent. Not all user agents may render all seven sizes.
A relative increase in font size. The value "+1" means one size larger. The value "-3" means three sizes smaller. All sizes belong to the scale of 1 to 7.
font (deprecated) This element is used to change the size, color and face of the enclosed text.Attribute, size, usage:
  • sets the size of the font. Possible values:
    • An integer between 1 and 7. This sets the font to some fixed size, whose rendering depends on the user agent. Not all user agents may render all seven sizes.
    • A relative increase in font size. The value "+1" means one size larger. The value "-3" means three sizes smaller. All sizes belong to the scale of 1 to 7.
hr Draws a horizontal line.
input This element defines a form control for the user to enter input.Attribute, size, usage:
  • Tells the user agent the initial width of the control. The width is given in pixels except when type attribute has the value "text" or "password". In that case, its value refers to the (integer) number of characters.
select This element defines a form control for the selection of options. It is is most useful within a FORM.Attribute, size, usage:
  • If a SELECT element is presented as a scrolled list box, this attribute specifies the number of rows in the list that should be visible at the same time.
  • Visual user agents are not required to present a SELECT element as a list box; they may use any other mechanism, such as a drop-down menu.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.