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
43 changes: 37 additions & 6 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,52 @@
<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-->
<div>
<label for="name">Name(only letters, spaces and symbols are allowed)</label>
<input type="text" name="name" id="name" required minlength="2" pattern="[A-Za-z\s\W_]+">
</div>
<br>
<div>
<label for="email">E-mail</label>
<input type="email" name="email" id="email" required pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}">
</div>
<br>
<div>
<label for="colour">select colour</label>
<select name="colour" id="colour" required>
<option value="" disabled selected>Select a colour</option>
<option value="brown">brown</option>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For your colour options, try to follow the same naming convention for all options. Currently, 'brown' and 'yellow' start with a lowercase letter but 'Green' starts with uppercase letter.

<option value="yellow">yellow</option>
<option value="green">green</option>
</select>
</div>
<br>
<div>
<label for="size"> select size</label>
<select name="size" id="size" required>
<option value="" disabled selected>Select a size</option>
<option value="xs">XS(extra small)</option>
<option value="s">S(small)</option>
<option value="m">M(medium)</option>
<option value="l">L(large)</option>
<option value="xl">XL(extra large)</option>
<option value="xxl">XXL(double extra large)</option>
</select>
</div>
<br>
<button type="submit">Submit</button>
</form>
</main>

<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By Boualem Larbi Djebbour</p>
</footer>
</body>
</html>