Saturday, August 25, 2012

input type checkbox HTML5, input type radio HTML5.


input type checkbox HTML5,  input type radio HTML5.

Introduction:
In this tutorial, you will the use of  checkbox and radio type input field. If type is checkbox then user can select multiple checkbox. If type is radio then user can select any one at a time.
Type Attribute:
AttributeValueDescription
typecheckbox
radio
user can select multiple checkbox.
at time only one.
Declaration Syntax :
                           <input  type="password" attribute/>

Example of <input> in HTML5:

Code:
TypePassword_Tag.html
<!DOCTYPE html >
<html >
<head>
<title>Password field</title>
</head>
<body>
<form>
<h2>Input tag.</h2>
<h2>Implementation of&nbsp; password type input tag. </h2>
<table><tr>
<td style="width: 198px">passord</td>
<td><input type="password" ></td>
</tr>
</table>
</form>
</body>
</html>
Output:

No comments:

Post a Comment