Skip to content
Open
Changes from 2 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
36 changes: 30 additions & 6 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,36 @@ <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-->
</form>
</main>
<div>
<label for="name">Name</label>
<input type="text" name="name" id"Name" placeholder="name" required>
</div>
<div>
<lable type="text" for= "email">email</lable>
<input type="email" id="email" pattern=".&@yahoo.co.uk" size="30" 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.

Have you tested that this pattern works?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@mahbubur13 Have you seen this comment?

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 have corrected the email verification

</div>
<p>Please select favourite colour:</p>
<input type="radio" id="red" name="fav_color" value"red">
<label for="red">Red</label><br>
<input type="radio" id="blue" name="fav_color" value"blue">
<label for="blue">Blue</label><br>
<input type="radio" id="green" name="fav_color" value"green">
<label for="green">Green</label><br>
<div>
Comment on lines +24 to +34

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 is slightly off.

Note: Your formatting is already very good. Using a formatter with "Format on Save" would save you time, ensure 100% consistency, and automatically clean up things like trailing whitespace and unnecessary empty lines. This also helps keep Git diffs and pull requests cleaner by reducing formatting-only changes, making it easier to review the actual code changes.

For more info about enabling "Format on save" option on VS Code, please refer to this guide.

<p> Please select your relevant size</p>
<label for="clothing-size">Choose a size:</label>
<select id="clothing-size" name="size">
<option value="xs"> XS - Extra Small</option>
<option value="s">S - Small</option>
<option value="m" selected>M - Medium</option>
<option value="l">L - Large</option>
<option value="xl">XL - Extra Large</option>
</select>
</div>
<button type="reset">Reset</button>
<button type="submit">Submit</button>
</form>
</main>
Comment thread
mahbubur13 marked this conversation as resolved.
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
Expand Down
Loading