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>
<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>
Comment on lines +29 to +39

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indentation and spacing aree not fully consistent.

Suggestion:

  • Look up the benefits of using a code formatter.
  • Install the Prettier extension for VS Code, then:
    • Use VS Code's Format Document feature to format your code.
    • Optionally, enable Format On Save and Format On Paste to keep your code consistently formatted.

Resource: Visual Studio Code - Formatting

Note: The formatter may not work correctly if your code contains syntax errors.


<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