This commit is contained in:
Pankti Salvi 2022-10-28 09:37:57 +00:00 committed by GitHub
commit d266020d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

44
checkbox/index.html Normal file
View File

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML Tips and Tricks - Adding Checkboxes</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap" rel="stylesheet">
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
</head>
<body>
<div class="demo">
<a href="../index.html" class="home">
<img src="../home.svg" alt="home" />
</a>
<h1>Adding a Checkbox</h1>
<h4>Tick off vegetables from the given list : </h4>
<form action="" method="get">
<input type="checkbox" id="veg1" name="veg1" value="cabbage">
<label for="veg1"> Cabbage</label><br>
<input type="checkbox" id="veg2" name="veg2" value="banana">
<label for="veg2"> Banana</label><br>
<input type="checkbox" id="veg3" name="veg3" value="cauliflower">
<label for="veg3"> Cauliflower</label><br>
<input type="checkbox" id="veg4" name="veg4" value="carrot">
<label for="veg4"> Carrot</label><br>
<input type="checkbox" id="veg5" name="veg5" value="tomato">
<label for="veg5"> Tomato</label><br><br>
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>

View File

@ -95,6 +95,10 @@
<a href='./iframe/index.html'>
Iframe</a> - Embed YouTube Videos
</li>
<li>
<a href='./checkbox/index.html'>
CheckBox</a> - Add checkboxes to your webpage
</li>
</ul>
</div>
</body>