Skip to content
44 changes: 43 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?

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.

I see, i didn't have the labels matching id's on it, fixed that now.

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 see a different problem in lighthouse now: "Touch targets with sufficient size and spacing help users who may have difficulty targeting small controls to activate the targets"

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.

Fixed this by spacing them out with
and spaced out the submit and reset buttons with text ---

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,48 @@ <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>
</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" id="white" name="colour" value="white" required><br>
<label for="black">Black</label>
<input type="radio" id="black" name="colour" value="black"><br>
<label for="blue">Blue</label>
<input type="radio" id="blue" name="colour" value="blue"><br>
</div>
<div>
Size - Please select one:<br>
<label for="xs">XS:</label>
<input type="radio" id="xs" name="size" value="xs" required><br>
<label for="s">S:</label>
<input type="radio" id="s" name="size" value="s"><br>
<label for="m">M:</label>
<input type="radio" id="m" name="size" value="m"><br>
<label for="l">L:</label>
<input type="radio" id="l" name="size" value="l"><br>
<label for="xl">XL:</label>
<input type="radio" id="xl" name="size" value="xl"><br>
<label for="xxl">XXL:</label>
<input type="radio" id="xxl" name="size" value="xxl"><br>
</div>
-----------
<div>
<input id="sumbit" type="submit"><br>
</div>
-----------
<div>
<input id="reset" type="reset">
</div>
-----------

<!-- write your html here-->
<!--
try writing out the requirements first as comments
Expand All @@ -21,7 +63,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