Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

London_10_Saqib_Javed_HTML-CSS-Challenges #251

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
60 changes: 55 additions & 5 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>My form exercise</title>
<title>My form exercise by Saqib Javed</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
Expand All @@ -13,15 +13,65 @@
<h1>Product Pick</h1>
</header>
<main>
<P class="para">Please fill in the order form to complete your order</P>

<div class="form">
<form>
<!-- write your html here-->
<!-- try writing out the requirements first-->
</form>

<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" required/>
<br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" required/>
<br>
<label for="email">Email:</label><br>
<input id="email" type="email" required/>
</div>


<div class="color">
<fieldset>
<legend>Colors:</legend>

<input id="white" type="radio" name="colour" value="white"/>
<label for="white">White</label>

<input id="red" type="radio" name="red" value="red"/>
<label for="red">Red</label>

<input id="black" type="radio" name="black" value="black"/>
<label for="black">Black</label>
</fieldset>
</div>

<div class="size">
<label for="t-shirt size">T-shirt size</label><br>
<select id="size" name="size">
<option value="x-small">x-small</option>
<option value="small">small</option>
<option value="medium">medium</option>
<option value="large">large</option>
<option value="x-large">x-large</option>
<option value="xx-large">xx-large</option>
</select>
</div>

<div class="delivery">
<label for="delivery">
Chose your delivery date:
<input type="date" name="delivery" min="" max="" required/>
</label>
</div>

<div>
<button class="btn">submit</button>
</div>
</form>

</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>By Saqib Javed - London 10 - Doves</h2>
</footer>
</body>

Expand Down
48 changes: 48 additions & 0 deletions Form-Controls/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
* {
padding: 5px;
margin: 10px;
background-color: rgb(228, 232, 237);
}

header {
text-align: center;
font-size: 1.5rem;
}

.p {
text-align: center;
}

.form {
display: flex;
justify-content: center;
}

.color {
display: flex;
justify-content: center;
}

.size {
display: flex;
justify-content: center;
}

.delivery {
display: flex;
justify-content: center;
}

.btn {
display: block;
margin: auto;
display: flex;
justify-content: center;
color: whitesmoke;
background-color: orange;
}

footer h2 {
font-size: 0.75rem;
text-align: center;
}
45 changes: 24 additions & 21 deletions Two-Truths-One-Lie/index.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Our Grid Project</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&display=swap" rel="stylesheet">
</head>
<body>
<header>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Our Grid Project</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="styles.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<header>
<h1>Two Truths, One Lie</h1>
</header>
<main>
<!-- how will you mark up your media objects -->
</main>
<footer>
<h3>By YOUR NAMES HERE</h3>
</footer>
</body>
</html>
</header>
<main>
<!-- how will you mark up your media objects -->
</main>
<footer>
<h3>By Saqib Javed</h3>
</footer>
</body>
</html>