Input Form – Html Tutorial

The article describes the principle of creation, attributes and code input form.

By: Yuriy
INPUT - creates a form field (button, input box, checkbox, etc.), whose contents can be changed or activated by the user. The element has no ending tag. INPUT element must be inside the FORM element.

NAME - defines the name used when transferring the contents of the form to the server. This attribute is required for most types (attribute TYPE – look below) of INPUT element and is commonly used to identify the field or group of fields related logically.

TYPE - specifies the type of field for inputting data. By default it is "text". Possible values: text, textarea, file, password, checkbox, radio, submit, image, reset, hidden, button.

VALUE - defines text titles for the fields of any type, including buttons. For such fields as the checkbox or radio, will return to the value specified in VALUE attribute.

CHECKED - indicates that the checkbox and/or radio field types (see above attribute TYPE) are activated.

SIZE - determines the field size in characters. For example, to define a field with the apparent width of 24 characters, you must specify the SIZE = "24".

MAXLENGTH - defines the maximum number of characters that you can enter in the text box. It may be greater than the number of characters specified in the attribute SIZE. The default number of characters is not limited.

SRC - specifies the URL-address of the image used in the creation of graphical buttons. Used in conjunction with attribute TYPE = "image".

ALIGN - determines the way of vertical alignment for the image. Used in conjunction with attribute TYPE = "image". Completely analogous to attribute ALIGN of IMG element. The default value is ‘bottom'.

ACCEPT - specifies the type of file. Used only in conjunction with the parameter TYPE = "file". The value is a MIME-type.

Complete article can see here - HTML Tutorials (Input Form)









Related Articles

Form tutorialAn English tutorial is beneficial for both those who are learning English as a second language and for those native English speakers who are preparing...
Ajax tutorialA tutorial is nothing but a software program that is interactive and made mainly as a tool for learning. They help with learning new skills by employi...
Ajax tutorialAll that you wanted to know about Ajax tutorial is now worth referring at the online tutorial sites for a thorough analysis on Ajax with valuable reso...
Form_tutorialIf you are aiming to secure a copy and use the Adobe Photoshop 7.0, you must be trying to find a tutorial module that would help you maximize the use ...
Html tutorialIf you can type your name on a computer and you know the difference between Save and SaveAs, then by the end of this article you will be able to creat...