Skip to content
Open
83 changes: 60 additions & 23 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<!-- write your html here-->
<!--

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<!-- write your html here-->
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
</footer>
</body>
</html>

<!--Create an input for NAME-->
<div>
<label for="name">Name</label>
<input name="name" id="name" type="text" placeholder="full name" pattern=".*\S.*\S.*" required>
</div>
<!--Add an imput for Email-->
<div>
<label for="email">Email</label>
<input type="email" name="email" id="email" required>
</div>
<!-- create a select for color-->
<div>
<label for="color">Color</label>
<select name="color" id="color" required>
<option value="">Select a Color</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
</select>
</div>

<!--create a select for the shirt size-->
<div>
<label for="size">Size</label>
<select name="size" id="size" required>
<option value="">Select a Size</option>
<option value="extraSmall">XS</option>
<option value="small">S</option>
<option value="medium">M</option>
<option value="large">L</option>
<option value="extraLarge">XL</option>
<option value="extraExtraLarge">XXL</option>
</select>
</div>
<button type="submit">Submit</button>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By Liridona Shehu</p>
</footer>
</body>
</html>
Loading