Skip to content
Open
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
81 changes: 60 additions & 21 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,66 @@
<!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" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Form Example</title>
</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-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>
<form>
<p>Please complete all required (*) fields.</p>

<p class="form-field">
<label for="name">What's your name? *</label>
<input
type="text"
id="name"
name="name"
placeholder="Enter your name"
required
minlength="3"
maxlength="30"
pattern=".*[A-Za-z].*"
/>
</p>

<p class="form-field">
<label for="email">What's your email address? *</label>
<input
type="email"
id="email"
name="email"
placeholder="Enter your email"
required
/>
</p>

<p class="form-field">
<label for="color">Pick your color *</label>
<select id="color" name="color" required>
<option value="">-- Select a color --</option>
<option value="Yellow">Yellow</option>
<option value="Blue">Blue</option>
<option value="White">White</option>
</select>
</p>

<p class="form-field">
<label for="size">Pick your size *</label>
<select id="size" name="size" required>
<option value="">-- Select a size --</option>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select>
</p>

<p>
<button type="submit">Submit</button>
</p>
</form>
</body>
</html>