HTML | Tags and Attributes [FORM] [Checkbox]


Ü How to include Checkboxes ?
            To create Check Box’s, in the above input replace RADIO with CHECKBOX. The values of NAME and VALUE attributes all can differ. We can use the CHECKED attribute in any number of options. A simple example with output is given below
.
Input :
<HTML><HEAD><TITLE> FORM </TITLE></HEAD>
<BODY>
<FORM>
I want....<BR>
<INPUT TYPE="CHECKBOX" NAME="per" VALUE="permanent">to be permanent member.<BR>
<INPUT TYPE="CHECKBOX" NAME="temp" VALUE="temporary">to be limited member.<BR>
<INPUT TYPE="CHECKBOX" NAME="tri" VALUE="trial">3 days free trial.<BR><BR>
</FORM></BODY></HTML>
Output:



Author: Tanmay Chakrabarty

Tanmay Chakrabarty is a former CSE student, currently working as a Senior Software Engineer with 5+ years of experience in the field of Web Application development in PHP+MySQL platform with strong skills in Javascript, JQuery, JQuery UI and CSS. He tries to write notes every week but fails due to heavy loads of duty.

Recommended Recommends

Comments

Contact Us