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
59 changes: 52 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -13,15 +13,60 @@ <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-->
<div>
<label for="name">Name:</label>
<input
type="text"
id="name"
name="name"
required
minlength="2"
pattern="(\p{L}\p{M}*)+(['\- ](\p{L}\p{M}*)+)*"
/>
<!--Regex. \p{L} Any unicode
character considered a letter. \p{M}* 0 or more unicode character that
could have accent. ()+ 1 or more of all of that.
['\- ] 1 space ' - character. (\p{L}\p{M}*)+)* then
0 or more of any letter again -->
</div>
<br />
<div>
<label for="email">Email:</label>
<input
type="email"
id="email"
name="email"
required
placeholder="abc@example.com"
/>
</div>
<br />
<div>
<label for="colour">Colour</label>
<select name="colour" id="colour" required>
<option value="">Please select</option>
<option value="white">White</option>
<option value="black">Black</option>
<option value="green">Green</option>
</select>
</div>
<br />
<div>
<label for="size">Size</label>
<select name="size" id="size" required>
<option value="">Please select</option>
<option value="xs">Extra Small</option>
<option value="s">Small</option>
<option value="m">Medium</option>
<option value="l">Large</option>
<option value="xl">Extra Large</option>
<option value="xxl">Extra Extra Large</option>
</select>
</div>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By Mahir Shah</p>
</footer>
</body>
</html>
Loading