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
47 changes: 42 additions & 5 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,52 @@ <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" name = "name" id = "name" minlength = "2" required
pattern=".*\S.*\S.*" />
</div>


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


<div>
<p>Colour</p>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm currently able to select multiple colours. according to requirements i should only be able to select 1 colour

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good day Kyle,

Thank you for your review. I was able to see the mistake that I made and I have updated it. May you kindly review the chnages.

Thank you

<input type ="radio" name = "colour" id = "red" value = "Red" required />
<label for = "red">Red</label>

<input type = "radio" name = "colour" id = "blue" value = "Blue"/>
<label for = "blue">Blue</label>

<input type = "radio" name = "colour" id = "black" value = "Black"/>
<label for = "black">Black</label>
</div>

<div>
<label for="size">Size</label>

<select name="size" id="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>
</div>
<div>
<button type="submit">Submit</button>
</div>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>Asanda Dunn</p>
</footer>
</body>
</html>
Loading