-
-
Notifications
You must be signed in to change notification settings - Fork 270
ITP-JAN-25 | Marco Martin Camon | Onboarding module - Week 1 #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ed38089
516dce6
987f056
12fc9fa
f2b9336
c55a0d0
4ec9003
0b7c8e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,35 @@ | |
</head> | ||
<body> | ||
<header> | ||
<h1>Product Pick</h1> | ||
<h1>Please choose your T-Shirt</h1> | ||
</header> | ||
<main> | ||
<form> | ||
<p> <span style="color:red">*</span><span><label for="FullName">Name: </label><input type="text" id="FullName" name="FullName" required pattern="[A-Za-z]{3,}"></span></p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What would happen if my name was O'Donnell? https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/ |
||
<span style="color:red">*</span><label for="EmailAddress">Your Email Address: </label><input type="text" id="EmailAddress" name="EmailAddress" required pattern="[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,}$"></span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a type of input that validates email addresses automatically? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, format your code for better readability - split it to new lines, don't group many elements into one line. |
||
<p><span style="color:red">*</span><label for="colour">T-Shirt Colour:</label> | ||
<select id="colour" name="colour" required > | ||
<option selected="selected" disabled="disabled">Please choose your colour</option> | ||
<option value="red">Red</option> | ||
<option value="green">Green</option> | ||
<option value="black">Black</option> | ||
</select> | ||
</span></p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure these spans and ps are necessary. What do you think? |
||
<p><span style="color:red">*</span><label for="size">T-Shirt Size: </label> | ||
<select id="size" name="size" required> | ||
<option selected="selected" disabled="disabled">Please choose your 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> | ||
</p> | ||
|
||
<p>All fields marked with (<span style="color:red">*</span>) are mandatory</p> | ||
<button>Sumbit</button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
<!-- write your html here--> | ||
<!-- | ||
try writing out the requirements first as comments | ||
|
@@ -21,7 +46,7 @@ <h1>Product Pick</h1> | |
</main> | ||
<footer> | ||
<!-- change to your name--> | ||
<h2>By HOMEWORK SOLUTION</h2> | ||
<h2>Marco Martin Camon - 2025</h2> | ||
</footer> | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, avoid inline styling and use separate file (style.css) or at least add all your styles into
<style>
section in your HTML.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For attributes, please, use lowercase values and hyphens.
Bad:
for="FullName"
Good:
for="full-name"