HTML Programming Basic HTML Form 1 Forms Object
HTML Programming Basic HTML § Form 1
Form’s Object Radio buttons • Only one of the options / answers can be selected at a time. • Radio buttons are created using <input> tag , setting type attribute to radio. • Each radio buttons has a same name.
Form’s Object radiobutton. html <html><head></head><body> <form name=“latihan"> c language, object oriented(java). . . can be considered as: <input type="radio" name="radiobutton" value=“Networking"> networking <input type="radio" name="radiobutton" value=“Programming Language" checked> programming language <input type="radio" name="radiobutton" value=“Operating System"> operating system <input type=submit ></form></body></html>
Form’s Object radiobutton. html
Form’s Object Dropdown List boxes • Dropdown list boxes are created using <select> and <option> tags. • The <select> tag that creates the list box encloses a number of <option> tags. the <option> tags each contain the text that corresponds to an item on the dropdown list.
Form’s Object listboxes. html <html><head></head><body> <form name=“latihan"> what price of laptop are you looking to buy ? <select name="price"> <option selected>RM 3000 - RM 3500</option> <option>RM 3500 -RM 4000</option> <option>RM 4000 -RM 4500</option> </select> <input type=submit> </form></body></html>
Form’s Object listboxes. html
End of Lecture Next time, more HTML 8
- Slides: 8