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
84 changes: 77 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,89 @@
</head>
<body>
<header>
<h1>Product Pick</h1>
<h1>J-Linx Enterprise</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>
<p>Please fill in the form below:</p>
<form action="#" method="post">
<div>
Copy link

Choose a reason for hiding this comment

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

For reading, it's better to align this properly, othere than this LGTM (look good to me)

<label for="fullName">Full name</label>

Choose a reason for hiding this comment

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

Very minor User Experience tip: if the fields are required, consider adding a * in the label to communicate the user what you expect. Like <label for="email">Email*:</label>

For more info, have a look to Google accessibility tips here: "Labels inform a user about the purpose of a field, if the field is required […]".

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for your tips, its really helpful.. Thanks for reviewing my works and helping out. i do appreciate..
So its good when i introduce *. As you indicated, or only when the field is required?

Copy link

Choose a reason for hiding this comment

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

If the field requires it

Copy link
Author

Choose a reason for hiding this comment

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

Thank You @mvcds

<input
type="text" placeholder="Joseph Ayitey"
id="fullName"
name="fullName"
minlength="2"
required
/>
</div>

<div>
<label for="email">Email address</label>
<input
type="email" placeholder="[email protected]"
id="email"
name="email"
required
/>
</div>

<div>
<label for="Addres">Address</label>
<input
type="Address" placeholder="Home Address"
id="Address"
name="Address"
required
/>
</div>

<fieldset>
<legend>Choose a colour</legend>

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

<div>
<input type="radio" id="colourGreen" name="colour" value="green" />
<label for="colourGreen">Green</label>
</div>

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

<div>
<input type="radio" id="colourYellow" name="colour" value="Yellow" />
<label for="colourYellow">Yellow</label>
</div>

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

<div>
<label for="size">Choose a size</label>
<select id="size" name="size" required>
<option value="#">Select 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>
<button type="submit">Submit</button>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>By J-Linx Front-End Developer(Joseph)</h2>
</footer>
</body>
</html>