HTML:-Check box tag

<!DOCTYPE html>
<html>

<head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Check Box</title>
</head>

<body>

 <!--you should click the checkbox-->
 <input type="checkbox" name="gndr">Male

 <input type="checkbox" name="gndr">FeMale

</body>

</html>



Output:-  Male FeMale



Use of:-   

Checkbox


  • This is used for selecting multiple items in a group.
  • The input checkbox object represents an HTML input element with type="checkbox".
HTML:-Check box tag HTML:-Check box tag Reviewed by Network security on April 30, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.