TAILIEUCHUNG - Tự học HTML và CSS trong 1 giờ - part 36

Tham khảo tài liệu 'tự học html và css trong 1 giờ - part 36', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 326 lesson 10 Designing Forms You can group check boxes together and assign them the same control name. This allows multiple values associated with the same name to be chosen p Check all symptoms that you are experiencing p label input type checkbox name symptoms value nausea Nausea label label input type checkbox name symptoms value lightheadedness Light-headedness label label input type checkbox name symptoms value fever Fever label label input type checkbox name symptoms value headache Headache label When this form is submitted to a script for processing each check box that s checked returns a value associated with the name of the check box. If a check box isn t checked neither the field name nor value will be returned to the server it s as if the field didn t exist at all. You may have noticed that when I applied labels to these check box elements I put the input tags inside the label tags. There s a specific reason for doing so. When you associate a label with a check box or with a radio button as you ll see in the next section the browser enables you to check the box by clicking the label as well as by clicking the button. That can make things a bit easier on your user. In the examples thus far I have tied labels to fields by putting the field name in the for attribute of the label but that doesn t work for check boxes because multiple form fields have the same name and the browser would not figure out which check box the label applies to. Instead I put the input tag inside the label tag. I could achieve the same result by assigning a unique id to each check box and associating them with the labels that way but nesting the tags is easier. Creating Radio Buttons Radio buttons which generally appear in groups are designed so that when one button in the group is selected the other buttons in the group are automatically unselected. They enable you to provide users with a list of options from which only one option can be selected. To create a radio button set the

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.