Skip to content
Closed
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
78 changes: 53 additions & 25 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<header>
<h1>Product Pick</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-->
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>
</body>
</html>


<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<main>
<h1>T-shirt Order Form</h1>
<form>
<label for="name">Your name:</label>
<input type="text" id="name" name="name" required minlength="2">

<label for="email">Your email address:</label>
<input type="email" id="email" name="email" required>

<p>Choose your T-shirt colour and size:</p>

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

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

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


<p>Choose your T-shirt size:</p>>

<input type="radio" id="XS" name="size" value="XS" required>
<label for="XS">XS</label>

<input type="radio" id="S" name="size" value="S" required>
<label for="S">S</label>

<input type="radio" id="M" name="size" value="M" required>
<label for="M">M</label>

<input type="radio" id="L" name="size" value="L" required>
<label for="L">L</label>

<input type="radio" id="XL" name="size" value="XL" required>
<label for="XL">XL</label>

<input type="radio" id="XXL" name="size" value="XXL" required>
<label for="XXL">XXL</label>

<button type="submit">Submit your order</button>
</form>
</main>
</body>
</html>
58 changes: 41 additions & 17 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,55 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe</title>
<title>Web Development For Beginners</title>
<link rel="stylesheet" href="style.css" />
</head>

<body>
<header>
<h1>Wireframe</h1>
<h1>Web Development For Beginners</h1>
<p>
This is the default, provided code and no changes have been made yet.
Learn the basics of web development and start building your own websites today! Learn about README files, wireframes, and Git branches. </p>
</p>
</header>
<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
</p>
<a href="">Read more</a>
</article>
</header>

<main>
<section class="articles">

<article>
<h2>What is a README file?
</h2>
<p>
A README file is a text file that provides information about a project, including its purpose, instructions, and other relevant details.
</p>
<a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes">Read more about README files
</a>
</article>

<article>
<h2>What is a wireframe?
</h2>
<p>
A wireframe is a visual representation of a website's layout and structure, used to plan and organize content before development.
</p>
<a href="https://www.productplan.com/glossary/wireframe/">Read more about wireframes
</a>
</article>

<article>
<h2>What is a Git branch?
</h2>
<p>
A Git branch is a parallel version of a repository, allowing developers to work on different features or experiments without affecting the main codebase.
</p>
<a href="https://docs.github.com/en/get-started/quickstart/github-flow">Read more about Git branches
</a>
</article>

</section>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
<p>&copy ; 2026 Web Development For Beginners. All rights reserved.</p>
</footer>
</body>
</html>
140 changes: 81 additions & 59 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
@@ -1,89 +1,111 @@
/* Here are some starter styles
You can edit these or replace them entirely
It's showing you a common way to organise CSS
And includes solutions to common problems
As well as useful links to learn more */

/* ====== Design Palette ======
This is our "design palette".
It sets out the colours, fonts, styles etc to be used in this design
At work, a designer will give these to you based on the corporate brand, but while you are learning
You can design it yourself if you like
Inspect the starter design with Devtools
Click on the colour swatches to see what is happening
I've put some useful CSS you won't have learned yet
For you to explore and play with if you are interested
https://web.dev/articles/min-max-clamp
https://scrimba.com/learn-css-variables-c026
====== Design Palette ====== */
/* ====== Design Palette ====== */
:root {
--paper: oklch(7 0 0);
--ink: color-mix(in oklab, var(--color) 5%, black);
--font: 100%/1.5 system-ui;
--space: clamp(6px, 6px + 2vw, 15px);
--line: 1px solid;
--container: 1280px;
--paper: #e8f3c3;
--ink: #263238;
--primary: #135a33;
--link: #135a33;
--font: 100%/1.5 system-ui, sans-serif;
--space: clamp(10px, 2vw, 20px);
--line: 1px solid #ddd;
--container: 1100px;
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */

/* ====== Base Elements ====== */
* {
box-sizing: border-box;
}

body {
margin: 0;
padding-bottom: 80px;
background: var(--paper);
color: var(--ink);
font: var(--font);
}

a {
padding: var(--space);
border: var(--line);
max-width: fit-content;
color: var(--link);
font-weight: bold;
}
img,
svg {
width: 100%;
object-fit: cover;

a:hover {
color: #0b3d22;
}
/* ====== Site Layout ======
Setting the overall rules for page regions
https://www.w3.org/WAI/tutorials/page-structure/regions/
*/

a:focus-visible {
outline: 3px solid #e09b19;
outline-offset: 4px;
}

/* ====== Site Layout ====== */
header {
background: var(--primary);
color: #ffffff;
text-align: center;
padding: calc(var(--space) * 2);
}

header h1 {
margin-top: 0;
}

main {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
margin: 0 auto;
padding: var(--space);
}

footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: var(--primary);
color: #ffffff;
text-align: center;
padding: 10px;
}
/* ====== Articles Grid Layout ====
Setting the rules for how articles are placed in the main element.
Inspect this in Devtools and click the "grid" button in the Elements view
Play with the options that come up.
https://developer.chrome.com/docs/devtools/css/grid
https://gridbyexample.com/learn/
*/
main {

footer p {
margin: 0;
}

/* ====== Articles Grid Layout ====== */
.articles {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
> *:first-child {
}

.articles > *:first-child {
grid-column: span 2;
}
}
/* ====== Article Layout ======
Setting the rules for how elements are placed in the article.
Now laying out just the INSIDE of the repeated card/article design.
Keeping things orderly and separate is the key to good, simple CSS.
*/

/* ====== Article Layout ====== */
article {
border: var(--line);
padding-bottom: var(--space);
border-radius: 8px;
padding: 25px;
background: white;
text-align: left;
display: grid;
grid-template-columns: var(--space) 1fr var(--space);
> * {
grid-column: 2/3;
display: flex;
flex-direction: column;
}

article h2 {
color: var(--primary);
}

article a {
margin-top: auto;
}
/* ====== Responsive Layout ====== */
@media (max-width: 768px) {
.articles {
grid-template-columns: 1fr;
}
> img {
grid-column: span 3;
.articles > *:first-child {
grid-column: span 1;
}
}
Loading