Share on Google+Share on Google+

input type checkbox HTML5,  input type radio HTML5.

Advertisement
In this tutorial, you will see the use of checkbox and radio attribute of input tag.

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:
Attribute Value Description
type
checkbox
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:

Download this code

Advertisements

Advertisement

Posted on: September 16, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.