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
9 changes: 8 additions & 1 deletion week-3/25-shirt-size/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ <h1 class="shopping-basket__title">Your Shopping Basket</h1>
</div>
</td>
<td>
Medium
<form>
<label class="screenreader " for="tshirt-size">Choose Size</label>
<select name="tshirt-size" id="tshirt-size">
<option value="small">Small</option>
<option value="medium" selected>Medium</option>
<option value="large">Large</option>
</select>
</form>
</td>
<td>
1
Expand Down
5 changes: 5 additions & 0 deletions week-3/25-shirt-size/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/* Add your CSS below */
.screenreader {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
left: -2000px;
}
26 changes: 20 additions & 6 deletions week-3/27-attributes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,26 @@ <h2 class="checkout__title">Checkout</h2>
<legend>Billing Address</legend>
<p>
<label for="billing-address-1">Address Line 1</label>
<input type="text" name="billing-address-1" id="billing-address-1" />
<input type="text" name="billing-address-1" id="billing-address-1" required />
</p>
<p>
<label for="billing-address-2">Address Line 2</label>
<input type="text" name="billing-address-2" id="billing-address-2" />
</p>
<p>
<label for="billing-postcode">Postcode</label>
<input type="text" name="billing-postcode" id="billing-postcode" />
<input type="text" name="billing-postcode" id="billing-postcode" required />
</p>
<p>
<label for="billing-city">City</label>
<input type="text" name="billing-city" id="billing-city" />
<input type="text" name="billing-city" id="billing-city" required />
</p>
</fieldset>
<fieldset>
<legend>Delivery Address</legend>
<p>
<label for="delivery-address-1">Address Line 1</label>
<input type="text" name="delivery-address-1" id="delivery-address-1" />
<input type="text" name="delivery-address-1" id="delivery-address-1" required />
</p>
<p>
<label for="delivery-address-2">Address Line 2</label>
Expand All @@ -73,15 +73,27 @@ <h2 class="checkout__title">Checkout</h2>
type="text"
name="delivery-address-postcode"
id="delivery-address-postcode"
required
/>
</p>
<p>
<label for="delivery-address-city">City</label>
<input type="text" name="delivery-address-city" id="delivery-address-city" />
<input
type="text"
name="delivery-address-city"
id="delivery-address-city"
required
/>
</p>
<p>
<label for="delivery-country">Country</label>
<input type="text" name="delivery-country" id="delivery-country" />
<input
type="text"
name="delivery-country"
id="delivery-country"
value="United Kingdom"
readonly
/>
</p>
<fieldset>
<legend>Delivery Options</legend>
Expand All @@ -91,6 +103,8 @@ <h2 class="checkout__title">Checkout</h2>
name="delivery-option"
id="delivery-option"
value="standard"
checked
disabled
/>
Royal Mail
</label>
Expand Down