Professional Documents
Culture Documents
List of All Form Objects in HTML: "Myform" "Myform" "Page - HTML" "Return Fun "
List of All Form Objects in HTML: "Myform" "Myform" "Page - HTML" "Return Fun "
List of All Form Objects in HTML: "Myform" "Myform" "Page - HTML" "Return Fun "
List of objects recognized by all browsers, with the source code, and how to use them.
... objects...
</form>
The name or id attribute can access by script to its content. It is best to use both attributes with the same
identifier, for the sake of compatibility.
The action attribute indicates the page to which send the form data. If this attribute is empty, the page that
contains the form that will be charged the data as parameters.
The onSubmit attribute associates a test function on the form. If the function return false, the form data are not
sent, we stay on the same page.
Top of Form
Object Appearance Code
Radio
<input type="radio" name="radiox" value="radio1">
button
Radio
group Choice 1
<label>Choix 1
Choice 2
<input type="radio" name="myradio"
value="radio1">
</label><br>
<label>Choix 2
</label>
Yes No
<select name="select">
<option>cherry</option>
<option>orange</option>
<option>apple</option>
</select>
Menu
The select tag and option inner tags allow to build a menu that
can take the form of a scrolling list or a static list.
<option>cherry</option>
List <option>orange</option>
<option>apple</option>
</select>
<input type="file" name="file">
HTML has a file selection function with the file type "file"
File which combines a text field and a button.
Image field
The src attribute indicates the URL of the image.