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
64 changes: 57 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,66 @@
<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>
<form>

<label for="name">Customer Name</label>
<input
type="text"
id="name"
name="name"
required
pattern=".*\S.*\S.*"
minlength="2"
Comment on lines +19 to +24
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Its good practice to use indentation on the html attributes to make it more readable. How could you ensure consistent and standard formatting of your code?

/>


<label for="email">Email Address</label>
<input
type="email"
id="email"
name="email"
required
/><br />

<!-- T-Shirt Colour -->
<fieldset>
<legend>T-Shirt Colour</legend>

<label>
<input type="radio" name="colour" value="Black" required />
Black
</label>

<label>
<input type="radio" name="colour" value="White" />
White
</label>

<label>
<input type="radio" name="colour" value="Blue" />
Blue
</label>
</fieldset>

<!-- T-Shirt Size -->
<label for="size">T-Shirt Size</label>

<select id="size" name="size">
<option value="">Please choose a size</option>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What happens when the user would submit the form with this value?

<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>


</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>Mahdi Rafiei</p>
</footer>
</body>
</html>
Loading