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
39 changes: 38 additions & 1 deletion Form-Controls/index.html

@Luro91 Luro91 Sep 10, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The lighthouse Accessibility score is below 100. How can you achieve 100?

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,43 @@ <h1>Product Pick</h1>
</header>
<main>
<form>
<div>
<label for="name">Name:</label>
<input type="text" id="name" placeholder="Hugh Mills" pattern=".*\S.*\S.*." required>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The validation does not allow special characters like the German ä,ü,ö or Russian ед

</div>
<div>
<label for="email">Email:</label>
<input type="email" id="email" placeholder="hugh.mills@myemail.com" required>
</div>
<div>
Colour- Please Select one:<br>
<label for="white">White</label>
<input type="radio" name="colour" value="white" required>
<label for="black">Black</label>
<input type="radio" name="colour" value="black">
<label for="blue">Blue</label>
<input type="radio" name="colour" value="white">
</div>
<div>
Size - Please select one:<br>
<label for="size">XS:</label>
<input type="radio" name="size" value="xs" required>
<label for="size">S:</label>
<input type="radio" name="size" value="s">
<label for="size">M:</label>
<input type="radio" name="size" value="m"><br>
<label for="size">L:</label>
<input type="radio" name="size" value="l">
<label for="size">XL:</label>
<input type="radio" name="size" value="xl">
<label for="size">XXL:</label>
<input type="radio" name="size" value="xxl">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

FYI: I would change the form types. Radio buttons are good if there are not to many options to choose from. Space on a web page is precious and for inputs with a lot of options, a dropdown can save a lot of space. (You don't need to change anything. This is just an information on the different input types)

</div>
<div>
<input type="submit">
<input type="reset">
</div>

<!-- write your html here-->
<!--
try writing out the requirements first as comments
Expand All @@ -21,7 +58,7 @@ <h1>Product Pick</h1>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By Hugh Mills</p>
</footer>
</body>
</html>
Loading