1 / 8

HTML Programming

Learn how to create radio buttons and dropdown list boxes in HTML forms. Understand the attributes and tags required to build these form objects.

vregis
Download Presentation

HTML Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HTML Programming • Basic HTML • Form

  2. 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.

  3. Form’s Object radiobutton.html <html><head></head><body> <form name=“latihan"> c language,object oriented(java) .....can be considered as: <br><br> <input type="radio" name="radiobutton" value=“Networking"> networking <br> <input type="radio" name="radiobutton" value=“Programming Language" checked> programming language <br> <input type="radio" name="radiobutton" value=“Operating System"> operating system <br><input type=submit ></form></body></html>

  4. Form’s Object radiobutton.html

  5. 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.

  6. Form’s Object listboxes.html <html><head></head><body> <form name=“latihan"> what price of laptop are you looking to buy ? <br> <br> <select name="price"> <option selected>RM 3000- RM 3500</option> <option>RM 3500-RM 4000</option> <option>RM 4000-RM 4500</option> </select> <br><br> <input type=submit> </form></body></html>

  7. Form’s Object listboxes.html

  8. End of LectureNext time, more HTML

More Related