The HTML Elements reference.

"form" - html element

  • This element defines an interactive form.
  • Starttag <form> is Required and endtag </form> is Required
  • The element should contains form controls like 'input' , 'select' , 'textarea' and 'button' , which is used as interaction with the form.
  • Browsers that support the form - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "form" example:
    <form action="tryexamples/getFerrari.php"
         title="get a Car">
        <legend>Buy a Car:</legend>
        Type : <input type="text" name="car" value="Ferrari" /><br />
        Model: <input type="text" name="model" value="2010"/><br />
        Price : <input type="text" name="price" value="$100000"/>
      <button type="submit" >Get the car</button>
      <button type="reset" >Reset form</button>

accept , accept-charset , action (required), class , dir , enctype (Initial: application/x-www-form-urlencoded), id , lang , method (Initial: get), name , style , target , title

Attribute "accept" value(s): content-type-list
  • Specifies a comma-separated list of content types that a server processing this form will handle correctly.
  • Content types are case-insensitive. Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "text/css", and "audio/basic".

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