Saturday, 17 March 2018

Checkbox creation in html

Checkbox creation in html

In this chapter we are learning about input type - checkbox. Let us see the HTML code written below. The output is in the following figure :

checkbox in HTML
checkbox in HTML5

  • Here <br /> means Line Break.
  • <p> Paragraph Start and </p> Paragraph end.

<html>
<head>
<title>My Website</title>
</head>
<body>
<form>
<input type="checkbox" />First Term<br />
<input type="checkbox" />Second Term<br />
<input type="checkbox"/>Third Term <br />
<p>
<input type="submit" value="SUBMIT"></p>
</form>
</body>
</html>

Please write in comment box, if find any problem.

No comments:

Post a Comment