Home  >  Article  >  Web Front-end  >  HTML form markup tutorial (4):_HTML/Xhtml_Web page production

HTML form markup tutorial (4):_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:44:071583browse

Suppose you want to add something like this to the form: Browse the city where you are located. I’m not talking about cities across the country, just dozens of cities above provincial capitals. It would be unimaginable to list all these cities on a web page in the form of radio buttons as mentioned above. So menus and lists appear in the form object. After all, menus and lists are mainly created to save space on web pages.
The menu is the most space-saving way. Under normal conditions, only one option can be seen. Only after clicking the button to open the menu can you see all the options. The list can display a certain number of options. If this number is exceeded, a scroll bar will automatically appear, and the viewer can drag the scroll bar to view each option. Menus and list effects on the page can be designed through 02 Grammar explanation
The meaning of these attributes is as shown in the table below Menu and list markers Description name Menu and list names size Number of options displayed multiple Multiple selection of items in list value option value selected Default options File example:11-16.htm
Insert menus and lists into pages.
01
02
03
04
05 <br>06 <br>07 <title>Insert Menus and Lists
08
09
10

User Survey


11

12 Please choose what you like Music:

13

19 Please select the city where you live:

20

26
27

28
29
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn