Home » , » HTML Forms: Creating a Default Option

HTML Forms: Creating a Default Option


The HTML OPTION tag is used to create options listed in a drop down box of a web page form.

You can select a default option by adding the word "selected" within your OPTION tag.
<SELECT>
<OPTION>option 1
<OPTION SELECTED>option 2
<OPTION>option 3
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT>
Browser View:


Creating a default option within your drop down box is a great way to display an option that is most-likely to be selected. However, if your visitor prefers another option, they can easily select another option.
Share this article :

1 comments:

 
Copyright © Online Business - All Rights Reserved
Proudly powered by Blogger