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
67 changes: 60 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,72 @@
</head>
<body>
<header>
<h1>Product Pick</h1>
<h1>Dave's T-shirt Factory</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-->
<fieldset>
<legend><h2>Customer's Details:</h2></legend>

<label for="customer-name"
>Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label
>
<input
name="customer-name"
type="text"
minlength="2"
id="customer-name"
required
/><br /><br />
<label for="customer-surname">Surname&nbsp;&nbsp;</label>
<input
name="customer-surname"
type="text"
minlength="2"
id="customer-surname"
required
/><br /><br />

<label for="customer-email"
>E-mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label
>
<input
name="customer-email"
type="email"
id="customer-email"
required
/>
</fieldset>
<fieldset>
<legend><h2> Pick a T-shirt:</h2></legend>
<label for="tshirt-color"><strong>T-shirt Color:</strong> </label>
<select name="tshirt-color" id="tshirt-color" required>
<option value="">Color</option>
<option value="yellow">Yellow</option>
<option value="green">Green</option>
<option value="burgundy">Burgundy</option>
<br /><br />
</select>
<p><strong>T-shirt Size:</strong></p>
<input name="tshirt-size" type="radio" id="xs" value="xs" required />
<label for="xs">XS</label>
<input name="tshirt-size" type="radio" id="s" value="s" />
<label for="s">S</label>
<input name="tshirt-size" type="radio" id="m" value="m" />
<label for="m">M</label>
<input name="tshirt-size" type="radio" id="l" value="l" />
<label for="l">L</label>
<input name="tshirt-size" type="radio" id="xl" value="xl" />
<label for="xl">XL</label>
<input name="tshirt-size" type="radio" id="xxl" value="xxl" />
<label for="xxl">XXL</label>
</fieldset>
<br /><br />
<input type="submit" value="Place Order" />
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h3>By Alexandru Pocovnicu</h3>

Choose a reason for hiding this comment

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

🤔 You might consider using a different HTML element for your name within the footer. Right now, having <h3> in the footer will signal to screen readers that there is something new and important in the footer (like a sub-topic). In a sense, it breaks the semantic order of the page.

</footer>
</body>
</html>