$type=slider$snippet=hide

Description

Description

How to create drop-down Selection List ?

How to create drop-down selection List?, How to?, Teacher Notes, Juber Ahmed,

Basics of HTML



Create drop-down Selection List ?

Lists with radio buttons or checkboxes are fine for short lists. You can make big list with either of those. But there are situations where you want to show hundreds of options and select only one, Like in a form where you want to choose a state or a country. You have probably seen dozens of those. In such cases a drop-down list may be better. It keeps the form very compact and you can easily see what country or state you have selected.

Lists like these are created with the SELECT tag. There is an opening tag and a closing one. You need to specify a name with the NAME attribute.

<SELECT NAME="country">
</SELECT>


The options in the list are created with the OPTION tag. The closing tag is optional. The VALUE attribute is optional; you can leave it out. If you don't use it, the value after the OPTION tag is submitted with the form. If you use the VALUE attribute, only the value is submitted.


Code :-

<SELECT NAME="country"><OPTION VALUE=" "> (select country) </OPTION><OPTION VALUE="AF"> Afghanistan </OPTION><OPTION VALUE="AL"> Albania </OPTION></SELECT>

Result:


# What is Visual basic?

In a list like the one above, the first one is selected by default. The value would be empty here. If you suspect that most of your visitors are from Afghanistan, you can set that as the default by moving it to the first place. You can also use the SELECTED attribute to do so. You can leave the first option (select country) out.


Code :-

<OPTION VALUE="AF" SELECTED>Afghanistan</OPTION>

Essay$type=left

Name

CBSE,1,Essay Writing,7,G.K & Current Affairs,7,Information & Technology,21,Letter Writing,8,News Letter,10,Passage Writing,3,Report Writing,2,SEBA,1,
ltr
item
Teacher Notes: How to create drop-down Selection List ?
How to create drop-down Selection List ?
How to create drop-down selection List?, How to?, Teacher Notes, Juber Ahmed,
https://1.bp.blogspot.com/-V11Nhc8ksZM/XcKNCtMd-nI/AAAAAAAAAVI/JmSo6kUniTceDn9whohUMJuxGEldpW3IQCKgBGAsYHg/s400/20191106_143356.jpg
https://1.bp.blogspot.com/-V11Nhc8ksZM/XcKNCtMd-nI/AAAAAAAAAVI/JmSo6kUniTceDn9whohUMJuxGEldpW3IQCKgBGAsYHg/s72-c/20191106_143356.jpg
Teacher Notes
https://www.freeteachernotes.com/2019/10/how-to-create-drop-down-selection-list.html
https://www.freeteachernotes.com/
https://www.freeteachernotes.com/
https://www.freeteachernotes.com/2019/10/how-to-create-drop-down-selection-list.html
true
2332357964370966229
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy