Edit This Code:
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../lib/w3.css">
<body>

<form class="w3-container w3-card-4">
<h2>Checkboxes</h2>

<p>
<input class="w3-check" type="checkbox" checked="checked">
<label class="w3-validate">Milk</label></p>

<p>
<input class="w3-check" type="checkbox">
<label class="w3-validate"> Sugar</label></p>

<p>
<input class="w3-check" type="checkbox" disabled>
<label class="w3-validate">Lemon (Disabled)</label></p>

</form>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy