Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 61 additions & 23 deletions Form-Controls/index.html
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,65 @@
<!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>
<link rel="stylesheet" href="style.css" />
</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>
12 changes: 12 additions & 0 deletions Form-Controls/style.css
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@

input,
select,
button {
min-height: 25px;
padding: 8px 12px;
font-size: 16px;
}

div{
margin-bottom: 10px;
}