Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Form-Controls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Do not write a form action for this project.
Let's write out our testable criteria. Check each one off as you complete it.

- [ ] I have only used HTML and CSS.
- [ ] I have not used any JavaScript.
- [ ] I have not used any JavaScrip

### HTML

Expand Down
38 changes: 37 additions & 1 deletion Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css">

</head>
<body>
<header>
Expand All @@ -17,11 +19,45 @@ <h1>Product Pick</h1>
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
<label for="name">Customer Name:</label>
<input type="text" id="name" minlength="2" required>

<label for="email">Customer Email:</label>
<input type="email" id="email" name="email" required>

<fieldset>
<legend>T-shirt color:</legend>

<input type="radio" id="blue" name="color" value="blue" required>
<label for="blue">Blue</label>

<input type="radio" id="black" name="color" value="black" required>
<label for="black">Black</label>

<input type="radio" id="grey" name="color" value="grey" required>
<label for="grey">Grey</label>

<label id="special-label">Size</label>

<select id="size" name="size" required>
<option value="">--select a size--</option>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="X">X</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select>

<button>Submit</button>
</fieldset>

</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By Raees Stevens</p>
</footer>
</body>
</html>
18 changes: 18 additions & 0 deletions Form-Controls/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
form {
display: inline-block;
/* Form outline */
padding: 1em;
border: 1px solid #cccccc;
border-radius: 1em;
}

#special-label {
font-size: 15px;
font-weight: bold;
}

button {
background-color: black;
color: white;

}
Loading