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
Binary file added .DS_Store
Binary file not shown.
Binary file added exercises/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions exercises/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ about commiting the changes and finally push them into your forked repository.
push to the forked repository, finally discuss the differences between both methods, using the readme file of this
exercise.

<div id="answers">
<p>GET vs POST Methods.<br>
GET allows the form to gather data from a the input the elements in a page while POST uses that data<br>
to do things with it (put it into a database, email it, etc.)
</p>
Binary file added sample1/.DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions sample1/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html>
<html lang ="en">
<meta charset="utf-8">

<head>
<title>Hello</title>
</head>
<body>
<!-- Main content -->
<p>Hello World!</p>
</body>
</html>
Binary file added sample2/.DS_Store
Binary file not shown.
19 changes: 19 additions & 0 deletions sample2/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!doctype html>
<html>
<html lang ="en">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<head>
</head>
<body>
<div class ="links">
<nav>
<ul>
<li><a href ="index.html">main page</a></li>
<li><a href ="about.html">about us</a></li>
<li><a href ="contact.html">contact us</a></li>
</ul>
</nav>
</div>
</body>
</html>
46 changes: 46 additions & 0 deletions sample2/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!doctype html>
<html>
<html lang ="en">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<head>
<title>contact page</title>
</head>
<body>
<div id ="table containter">
<h1>
Conact information
</h1>
<table>
<tr>
<td>name</td>
<td>phone number</td>
<td>city</td>
<td>state</td>
</tr>
<tr>
<td>donovan goldston</td>
<td>xxx-xxx-xxxx</td>
<td>dallas</td>
<td>texas</td>
</tr>
<tr>
<td>Angela Goldston</td>
<td>xxx-xxx-xxxx</td>
<td>dallas</td>
<td>texas</td>
</tr>

</table>
</div>
<div class ="links">
<nav>
<ul>
<li><a href ="index.html">main page</a></li>
<li><a href ="about.html">about us</a></li>
<li><a href ="contact.html">contact us</a></li>
</ul>
</nav>
</div>
</body>
</html>
12 changes: 12 additions & 0 deletions sample2/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
span{
background-color: red;
}
#sample1{
background-color: green;
width: 800px;
height: 200px;
}
.links{
background-color: green;
width: 200px;
}
32 changes: 32 additions & 0 deletions sample2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!doctype html>
<html>
<html lang ="en">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<head>
<title>main page</title>
</head>
<body>
<h1>
sample header 1
</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<h3>
sample header 2
</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<div class ="links">
<nav>
<ul>
<li><a href ="index.html">main page</a></li>
<li><a href ="about.html">about us</a></li>
<li><a href ="contact.html">contact us</a></li>
</ul>
</nav>
</div>
</body>
</html>
Binary file added sample3/.DS_Store
Binary file not shown.
64 changes: 64 additions & 0 deletions sample3/form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!doctype html>
<html>
<meta charset="utf-8">
<head>
<title>user form</title>
</head>
<body>
<!-- form -->
<form action="http://google.com" method="GET">
<label for "first_name">
First Name:
<input id ="first_name" name="firstname" type="textbox" required>
</label>
<label for "last_name">
Last Name:
<input id ="last_name" name="lastname" type="textbox"required>
</label><br>
<label for "date_of_birth">
Date of Birth:
<input id="DoB" type="date" name="DOB" autocomplete="bday"required>
</label>
<label for ="age">
Age:
<input id ="age" type ="number" name ="age" min ="1" max = "100" required>
</label><br>
<label for ="gender">
Gender:
<input type="radio" name="gender" id ="gender" value ="male" required>Male
<input type="radio" name="gender" id="gender" value ="female"required>Female
</label><br>
<label for ="email"required/>
Email:
<input type="email" id="email" name="email" required>
</label><br>

<input type="submit">
</form>
<div id ="problem">
<p>
Create a &ltform&gt element that will ask to the user and will submit to www.google.com using GET method:<br>
1. Name (textbox)<br>
2. Last Name (textbox)<br>
3. Birth Date (calendar)<br>
4. Age (range)<br>
5. Sex (option or radiobutton)<br>
6. Email<br>
7. Submit button<br>
<br>
All of the input should be required and validated before submitted, and should have a proper label attached to it.
Don't forget to commit all changes.<br>
<br>
When the GET is already working create a new branch that will change to a POST method, this branch should be also push to<br>
the forked repository, finally discuss the differences between both methods, using the readme file of this exercise.<br>
</p>
</div>
<div id ="answers">
<p>
GET vs POST Methods.<br>
GET allows the form to gather data from a the input the elements in a page while POST uses that data<br>
to do things with it (put it into a database, email it, etc.)
</p>
</div>
</body>
</html>