html:input

html:input — An input element in an HTML form

Synopsis

html:input ::=

  • empty

Attributes

Attributes:

  • accesskey
  • alt
  • checked (enumeration)
    • “checked”
  • disabled (enumeration)
    • “disabled”
  • maxlength
  • name
  • onblur
  • onchange
  • onfocus
  • onselect
  • readonly (enumeration)
    • “readonly”
  • size
  • src
  • tabindex
  • type (enumeration)
    • “text”
    • “password”
    • “checkbox”
    • “radio”
    • “submit”
    • “reset”
    • “file”
    • “hidden”
    • “image”
    • “button”
  • usemap
  • value

Description

An HTML form “input” field.

Processing expectations

Formatted inline.

Attributes

accesskey

Specifies the access key for the element

alt

Identifies the alt text of the graphical submit control

checked

Indicates that the initial state of a check box or radio control

Enumerated values:
“checked”

The control is on

class

This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters.

disabled

Indicates a control is unavailable

Enumerated values:
“disabled”

The element is disabled

lang

This attribute specifies the base language of an element's attribute values and text content. The default value of this attribute is unknown.

maxlength

Indicates the maximum length of the control

name

Specifies the name of the parameter associated with a control

onblur

Script to evaluate when a control loses focus

onchange

Script to evaluate when a control loses focus and its value has changed

onclick

Occurs when the pointing device button is clicked over an element.

ondblclick

Occurs when the pointing device button is double clicked over an element.

onfocus

Script to evaluate when a control receives focus

onkeydown

Occurs when a key is pressed down over an element.

onkeypress

Occurs when a key is pressed and released over an element.

onkeyup

Occurs when a key is released over an element.

onmousedown

Occurs when the pointing device button is pressed over an element.

onmousemove

Occurs when the pointing device is moved while it is over an element.

onmouseout

Occurs when the pointing device is moved away from an element.

onmouseover

Occurs when the pointing device is moved onto an element.

onmouseup

Occurs when the pointing device button is released over an element.

onselect

Script to evaluate when a user selects some text

readonly

Indicates that a control cannot be changed

Enumerated values:
“readonly”

The element is read only

size

Specifies the size of a control

src

Identifies the URI of the graphical submit control

style

This attribute specifies style information for the current element.

tabindex

Specifies the position of the element in tabbing order

title

This attribute offers advisory information about the element for which it is set.

type

Specifies the type of input control

Enumerated values:
“text”

A text control

“password”

A password control

“checkbox”

A check box control

“radio”

A radio button control

“submit”

Submit the form

“reset”

Reset the form

“file”

A file select control

“hidden”

A hidden control

“image”

A graphical submit control

“button”

A button control

usemap

Identifies an image map to use with the graphical submit control

value

Specifies the default value for the control

ChangeLog

This alpha reference page is $Revision: 7120 $ published Sun, 22 Jul 2007.