Link:http://output.to/sideway/default.asp?qno=110400002 HTML Form HTML Form - 2Form Control: <select> elementThe <select> element is the child control element of the <form> element. The <select> element is used to define the menu list control element of a form. Each menu item is held by an <option> element And menu items can also be groupped by the <optgroup> element in a singal hierachical level. There should have at least one item or one <option> element held by the <select> element.
Code Sample of <select> element with <option> and <optgroup>
elements
<form action="http://sideway.hk">
<select name="order"> <option>item a</option> <option>item b</option> <optgroup label="Remark"> <option>rem 1</option> <option>rem 2</option> <option>rem 3</option> </optgroup> </select> </form>
HTML web page:
Form Control: <textarea> elementThe <textarea> element is the child control element of the <form> element. The <textarea> element is used to define the multi-line text input control element of a form. Therefore more text can be entered by the user than an <input> element. And a <textarea> element can also held text content as the initial value
Code Sample of <textarea> element
<form action="http://sideway.hk">
<textarea name="remarks" cols=30 rows=5> </textarea> </form>
HTML web page:
Form Control: <button> elementThe <button> element is the child control element of the
<form> element. The <button> element is used to define the button control
element of a form similar to the buttons created by the <input> element, but
the <button> element can hold content for rendering.
Control types of <button> element:
|
Sideway BICK Blog 04/04 |