Skip to content
Open
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
15 changes: 15 additions & 0 deletions Form-Controls/formexercise.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
body {
line-height: 2;
font-size: 18px;
font-family: Arial, Helvetica, sans-serif;
border: 1px solid black;
text-align: center;
}
button {
width: 100px;
height: 40px;
background-color: white;
text-align: center;
color: black;
font-size: 20px;
}
46 changes: 39 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,59 @@
<!DOCTYPE html>
<!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" />
<link rel="stylesheet" href="formexercise.css" />
</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-->
<label for="name">Name:</label>
<input
type="text"
id="name"
name="name"
pattern=".*\S.*\S.*"
required
title="Please enter full name"
/>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required />
<br />
<div>
<label for="color">Choose a color:</label>
<select name="color" id="color" required>
<option value="">Choose Color</option>
<option value="green">Green</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
</select>
</div>
<div>
<label for="size">Choose a size:</label>
<select name="size" id="size" required>
<option value="">Choose Size</option>
<option value="XSmall">XS</option>
<option value="Small">S</option>
<option value="Medium">M</option>
<option value="Large">L</option>
<option value="XLarge">XL</option>
<option value="XXlarge">XXL</option>
</select>
</div>
<div>
<button type="submit">Submit</button>
</div>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>Maharit Belai</p>
</footer>
</body>
</html>
Loading