Selection Forms and Drop Down Lists

Posted by admin | Posted in HTML Tutorial | Posted on 11-08-2010-05-2008

0

Drop down lists are the lists which help inputing data from a fixd set of information.You might have come across various sites where you have to select choices from a drop down list, for example egistering on a site or filling up a recuisition form etc.

Example:

  • <select>
  • <option>California — CA</option>
  • <option>Colorado — CO</option>
  • <option>Connecticut — CN</option>
  • </select>

Drop Down List:

The first coded <option> will be displayed or selected as the default.But we can vey well change this using the selected attribute.

Example:

  • <select>
  • <option>California — CA</option>
  • <option>Colorado — CO</option>
  • <option selected=”yes”>Conneticut — CN</option>
  • </select>

Drop Down List:

Write a comment

Twitter Users
Enter your personal information in the form or sign in with your Twitter account by clicking the button below.