HTML Form Example

Form Example

<html>
<body>
  <font size=4 face=verdana>
    <p align="center">
      <font size=6 face=verdana style="background color:yellow">Form Example</font>
    </p>
    <form name="input" action="#" method="post">
      <fieldset>
        <legend>User Information:</legend>First name:
        <input type="text" name="firstname2" />
        <br /> Last name:&#160
        <input type="text" name="lastname2" />
      </fieldset>
      <br />
      <fieldset>
        <legend>User Details:</legend>
        Username:
        <input type="text" name="user2" />
        <br /> Password:&#160
        <input type="password" name="password2" />
      </fieldset>
      <br />
      <fieldset>
        <legend>Male/Female Details:</legend>
        <input type="radio" name="sex" value="male" /> Male
        <br />
        <input type="radio" name="sex" value="female" /> Female
      </fieldset>
      <br />
      <fieldset>
        <legend>Choose Your Country:</legend>
        <select name="select">
          <option value="India">India</option>
          <option value="United State">United States</option>
          <option value="Austalia">Austalia</option>
          <option value="New Zealend">New Zealend</option>
          <option value="England">England</option>
        </select>
        <br />
      </fieldset>
      <br />
      <input name="submit" type="submit" value="Submit" />
      <input name="Reset" type="Reset" value="Reset" />
    </form>
    <p><a href="http://www.way2tutorial.com/html/example/index.php">HTML Example</a></p>
  </font>
</body>
</html>

Form Example

User Information:First name:
Last name: 

User Details: Username:
Password: 

Male/Female Details: Male
Female

Choose Your Country: