mirror of
https://github.com/atapas/html-tips-tricks.git
synced 2024-11-16 08:48:26 +01:00
Added Checkbox Feature
This commit is contained in:
parent
5dc82b852f
commit
aedccc31cc
2 changed files with 48 additions and 0 deletions
44
checkbox/index.html
Normal file
44
checkbox/index.html
Normal 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>
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue