Tuesday, April 5, 2011

Radio ButtonsI in HTML

The event of this radio button to check the item. it is similar to the Checkboxes, their are different functions and shape. the function of radio button only one item can be selected at a time.

Source Code:

<!DOCTYPE html>

<html>
<hea
d>
<titl
e>Radio Buttons</title>
</head>

<body>
<b>Radio Button:</b><br/>

<p>
<input type= "radio" name="tree" value="narra_tree">
Narra Tree
</p>

<p>
<input type= "radio" name="tree" value="coconut_tree">
Coconut Tree
</p>

<p>

<input type= "radio" name="tree" value="bamboo_tree">
Bamboo Tree
</p>

</body>
</html>
The most important is the input element it use to select user information. an input element can be classify in different way, and also depending on the type of attribute. example of input element are text field, checkbox, password, radio button, submit button, scrolling lists, text areas, and more.

Radio - radio button let a user to select only one at a time and limited number of choices.

Name - you can define the element as being part of the Tree radio button group.

Value - sets the value for the input field.


Output:










This is the example output of radio button with a group of tree and you can select one at a time from the group.

No comments:

Post a Comment