Skip to content

Northwest | Somayeh Irankhagh | Form controls | WEEK 2 #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
42 changes: 35 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -12,16 +12,44 @@
<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 action="results.html" method="get" enctype="multipart/form-data">
<div>
<label for="name">Name</label>
<input type="text" name="name" id="name" required minlength="2">
</div>
</div>
<div>
<label for="email">Email</label>
<input type="email" name="email" id="email" required>
</div>
<div>
<label for="colour">Colour</label>
<select type="colour" name="colour" id="colour" >
<option value="Red">Red</option>
<option value="Blue">Blue</option>
<option value="Green">Green</option>
</select>
</div>
<div>
<label for="Size">Size</label>
<select type="Size" name="Size" id="Size" >
<option value="XSmall">XSmall</option>
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="XLarge">XLarge</option>
<option value="XXLarge">XXLarge</option>
</select>
</div>
<div>
<button type="Submit">Submit</button>
<button type="Reset">Reset</button>
</div>
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>SOMAYEH IRANKHAH</h2>
</footer>
</body>
</html>
</html>
25 changes: 25 additions & 0 deletions Form-Controls/results.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!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" />
<title>Results</title>
</head>
<body>
<div>
<div id="results">
</div>
<a href="C:/Users/User/CYF/Module-Onboarding/Module-Onboarding/Form-Controls/index.html">Back To Form</a>
<script>
const resultslist=document.getElementById('results')
new URLSearchParams(window.location.search).forEach((value,name)=>
{
resultslist.append(`${name}:${value}`)
resultslist.append(document.createElement(`br`))
})
</script>
</div>
</body>
54 changes: 44 additions & 10 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
@@ -3,30 +3,64 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wireframe</title>
<title>SHIRAZ</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Wireframe</h1>
<h1>SHIRAZ</h1>
<p>
This is the default, provided code and no changes have been made yet.
This is the picture of Shiraz my beautiful city.
</p>
</header>
<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<img src="shiraz3.jpg" alt="" />
<h2></h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
</p>
<a href="">Read more</a>
What is the purpose of a README file?The readme file is used to explain what is uploaded and how we can install or use it.
</p>
<P>What is the purpose of a wireframe?A wireframe is commonly used to layout content and functionality on a page which takes into account user needs and user journeys.
<P>
What is a branch in Git?Git branches are effectively a pointer to a snapshot of your changes
</P>
</P>
<a href="https://en.wikipedia.org/wiki/Culture_of_Shiraz#:~:text=Shiraz%20is%20known%20as%20the,villages%20and%20among%20the%20tribes.">Read more</a>
</article>
<article>
<img src="shiraz1.jpg" alt="" />
<h2></h2>
<p>

What is the purpose of a README file?The readme file is used to explain what is uploaded and how we can install or use it.
</p>
<P>
What is the purpose of a wireframe?A wireframe is commonly used to layout content and functionality on a page which takes into account user needs and user journeys.
<P>
What is a branch in Git?Git branches are effectively a pointer to a snapshot of your changes
</P>
</P>
<a href="https://en.wikipedia.org/wiki/Culture_of_Shiraz#:~:text=Shiraz%20is%20known%20as%20the,villages%20and%20among%20the%20tribes.">Read more</a>
</article>
<article>
<img src="shiraz2.jpg" alt="" />
<h2></h2>
<p>
What is the purpose of a README file?The readme file is used to explain what is uploaded and how we can install or use it.
</p>
<P>
What is the purpose of a wireframe?A wireframe is commonly used to layout content and functionality on a page which takes into account user needs and user journeys.
<P>
What is a branch in Git?Git branches are effectively a pointer to a snapshot of your changes
</P>
</P>

<a href="https://en.wikipedia.org/wiki/Culture_of_Shiraz#:~:text=Shiraz%20is%20known%20as%20the,villages%20and%20among%20the%20tribes.">Read more</a>
</article>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
This is the page about Shiraz.
</p>
</footer>
</body>