How to Define a Selectable List in HTML
Edited by Chris, Teresa
Selectable lists in HTML forms may be easy to use, but the tricky part is creating them. This article will explain how to code these things correctly.
Edit Steps
-
1Type the <form> tag into the HTML file.
Ad -
2Determine what type of information you need to collect from your visitor. Whether it's straight text (useful for names and addresses) or a password (for pages that require setup information), or yes/no checkboxes, or even a drop-down list of reasons (and lots of other types too), you'll never run out of items or reasons toput stuff on the page. Set the different types below for additional information to add to the page.
-
3Remember to denote the areas of the tags with the use of the <p>, </br> and </form> tags.
-
4Denote a label for the item using the <p><nowiki> tag into the code.<br><br>[[Image:Define a Selectable List in HTML Step 4.jpg|center|550px]] # Type the <nowiki><select> tag to denote this type of list exists to the browser.
-
5Press Enter.
-
6Type the <option value="shortexplanation2denoteitem"> tag.
-
7Type the text that you want your visitor to see displayed in the list.
-
8Type the concluding tag for the option you wrote using the </option>
-
9Repeat the steps from type the <option> tag downward for each item you'd like to include in the list.
-
10Type the conclusionary tag for the selection/drop-down box using the <nowiki</select></nowiki> tag.
-
11Type the </form> tag to conclude the form.Ad