The HTML Attribute reference.

"type" - html Attribute

  • The attribute has different meanings depending on the element it is associated with.

Value(s): Look at each element for details.
Used in the element(s):
Elements Description
a The A element denotes an anchor; a hypertext link or the destination of a link.Attribute, type, usage:
  • Gives an advisory hint as to the content type of the content available at the link target address. Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "text/css", and "audio/basic".
input This element defines a form control for the user to enter input.Possible attribute, type, values for this element:
Attribute value description
text Creates a single-line text input control. (It is also the default)
password Like "text", but the input text is rendered in such a way as to hide the characters. This control type is often used for sensitive input such as passwords.
checkbox Creates a checkbox. Checkboxes are on/off switches that may be toggled by the user. Several checkboxes in a form may share the same control name. Thus, for example, checkboxes allow users to select several values for the same property.
radio Creates a radio button. Radio buttons are like checkboxes except that when several share the same control name, they are mutually exclusive: when one is switched "on", all others with the same name are switched "off".
submit Creates a submit button. When activated, a submit button submits a form. A form may contain more than one submit button.
reset Creates a reset button. When activated, a reset button resets all controls to their initial values.
file Creates a file select control. User agents may use the value of the value attribute as the initial file name.
hidden Creates a hidden control. You may create controls that are not rendered but whose values are submitted with a form. You generally use this control type to store information between client/server exchanges that would otherwise be lost due to the stateless nature of HTTP.
image Creates a graphical submit button. The value of the src attribute specifies the URI of the image that will decorate the button. The value of the src attribute specifies the URI of the image that will decorate the button.
button Creates a push button. The value attribute should be the button's label. Push buttons have no default behavior. Each push button may have client-side scripts associated with the element's event attributes. When an event occurs, the associated script is triggered.
li This element defines a list item.Attribute, type, usage:
  • Sets the style of a list item.
link This element is designed to define a relationship between documents.Attribute, type, usage:
  • The type attribute specifies the MIME type of the linked document. Gives an advisory hint as to the content type of the content available at the link target address. A space-separated list of link types.
  • You should look at IANA MIME types for more details of standard defined types. White space characters are not permitted within link types.
Here is a shortlist of the possible attribute, type, values for this element:
Attribute value description
text/html Describes a text document containing html.
text/css Describes a text document containing style sheet.
text/javascript Describes a text document containing javascript.
text/vbscript Describes a text document containing vbscript.
text/plain Describes a text document containing plain text.
multipart/form-data Describes document containing multipart formdata.
object This element is used to include objects such as images, audio, videos, Java applets, and Flash animations. Attribute, type, usage:
  • Specifies the content type for the data specified by data. This attribute is optional but recommended when data is specified since it allows the user agent to avoid loading information for unsupported content types. If the value of this attribute differs from the HTTP Content-Type returned by the server when the object is retrieved, the HTTP Content-Type takes precedence.
ol This element defines an ordered list.Attribute, type, usage:
  • Sets the style of a list item.
Possible attribute, type, values for this element:
Attribute value description
1 Decimal numbers: 1, 2, 3, 4, 5, ... (this is the default)
a Lowercase alphabetic: a, b, c, d, e, ...
A Uppercase alphabetic: A, B, C, D, E, ...
i Lowercase Roman numerals: i, ii, iii, iv, v, ...
I Uppercase Roman numerals: I, II, III, IV, V, ...
param This element provides parameters for the 'object' and 'applet' elements. Attribute, type, usage:
  • Specifies the content type of the resource designated by the value attribute only in the case where valuetype is set to "ref". This attribute thus specifies for the user agent, the type of values that will be found at the URI designated by value.
script Defines a script (javascript, vbscript ....) which may be used within a document. A script contains code which is executable. You may also include a version number to precisely inform the browser the support you need for the script.Attribute, type, usage:
  • Specifies the scripting language of the element's contents and overrides the default scripting language. The scripting language is specified as a content type (e.g., "text/javascript"). Authors must supply a value for this attribute.
  • There is no default value for this attribute.
style This element allows you to define styles (CSS) which may be used within your document. Styles should bee placed inside the header section ('head' ). Attribute, type, usage:
  • Specifies the style sheet language of the element's contents and overrides the default style sheet language. The style sheet language is specified as a content type (e.g., "text/css"). Authors must supply a value for this attribute; there is no default value for this attribute.
ul This element defines an unordered list.Attribute, type, usage:
  • Sets the style of a list item. Currently available values are intended for visual user agents.
Possible attribute, type, values for this element:
Attribute value description
disc a filled-in circle
square a square outline
circle a circle outline
button This element defines a submit button, reset button, or push button.Possible attribute, type, values for this element:
Attribute value description
submit Creates a submit button. This is the default value. When activated, a submit button submits a form. A form may contain more than one submit button.
button Creates a push button. The value attribute should be the button's label. Push buttons have no default behavior. Each push button may have client-side scripts associated with the element's event attributes. When an event occurs, the associated script is triggered.
reset Creates a reset button. When activated, a reset button resets all controls to their initial values.

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