The HTML Elements reference

"fieldset" - html element

  • Groups related form controls.
  • Starttag <fieldset> is Required and endtag </fieldset> is Required
  • The element draws a box around the related elements in the form. The Legend element can be used as header for the box.
  • Browsers that support the fieldset - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "fieldset" example:
<html>
  <body>
    <form action="tryexamples/getFerrari.php"
         title="get a Car">
      <fieldset>
        <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"/>
      </fieldset>
      <button type="submit" >Get the car</button>
      <button type="reset" >Reset form</button>
    </form>
  </body>
</html>


Attributes:
class , dir , id , lang , style , title

Attribute "class" value(s): A list of style class names that must be separated by white space characters.
  • This attribute assigns a style class name or set of style class names to an element. Any number of elements may be assigned the same class name or names.
  • You will find more about this in the CSS learning on this site.



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