Quiz 1
Set Up
- Inside your 
csci185folder, create a folder calledquizzes. - Download the starter files and unzip them. They should be unzipped in a folder called 
quiz01. - Move your 
quiz01folder into thequizzesfolder. - Open your entire 
csci185folder in VS Code. 
Your directory structure should look something like this (it’s OK if your file structure looks different, so long as the quizzes folder looks like the one below):
csci185
├── homework
├── index.html
├── lectures
├── quizzes
│   └── quiz01
├── styles.css
└── tutorials
When you’re done with that, complete the Parts 1-4 as described below:
- (30pts) HTML Tasks (index.html)
 - (30pts) Styling tasks
 - (30pts) HTML Tasks (other files)
 - (10pts) Link from your homepage
 
Guidelines
- You may not move or rename any of the files.
 - Read the instructions that are outlined under each section very carefully.
 - Complete as many tasks as you can by the end of the quiz.
 - If it doesn’t look exactly like the screenshot, don’t stress – partial credit is given!
 - Just do your best.
 
Part 1. HTML Tasks (index.html) [30pts]
For this section, you will be editing the index.html file in order to create the HTML structure shown below.
Tree View

Box View

Please add only the tags shown exactly how they are shown (i.e. don’t add extra tags or omit tags):
1. [5pts] Stylesheet Link
- Inside of the 
headtag in yourindex.htmlfile, add a link to thestyles.cssstylesheet (located in theassets>cssfolder).- If you did it correctly, the background of your web page should turn dark blue.
 - Note that the files is named styles.css (plural).
 
 
2. [5pts] Semantic Structure
Add three empty semantic tags inside the body tag:
- a 
headertag - a 
maintag - a 
footertag 

3. [10pts] Header

- [3pts] Inside the 
headertag, add animgtag that links to thetaco-temple-logo.webpfile (in theimagesfolder). - [2pts] Below the 
imgtag (but still inside theheadertag), add anavtag. - [5pts] Inside the 
navtag, add 3 hyperlinks:- One called Menu that links to 
menu.html - One called Contact that links to 
contact.html - One called Hours & Location that links to 
location-hours.html 
 - One called Menu that links to 
 
Note that menu.html, contact.html , and location-hours.html are all located inside of the site-pages folder.
4. [8pts] Main

- [2pts] Give the 
maintag a class called"landing". - Inside the 
maintag, add the following:- [3pts] An 
imgtag that links to thelanding-image.webpfile (in the images folder). - [3pts] A 
sectiontag.
Inside the section tag, add two tags:- An 
h1that says: “Call 828-255-8098
for take-out or click below to order online!” - A hyperlink that links to the Taco Temple order online page here: https://www.mamacitastacotemple.com/s/order. The link text should say “Order now”.
 
 - An 
 
 - [3pts] An 
 
5. [2pts] Footer

Within the footer tag, create a paragraph tag that says “Copyright 2024, Taco Temple.”
Part 2: Styling tasks [30pts]
The purpose of this section is to ensure that you understand selectors. Feel free to refer to the selector cheatsheet. Be sure to add all of your style rules to the assets/css/styles.css file.
1. [3pts] Style the header
Create a ruleset that targets all header elements and applies the following styles:
padding: 25px 13vw;
display: flex;
align-items: center;
justify-content: space-between;
2. [2pts] Style the image inside the header element
Create a ruleset that targets img elements that are a descendents of header elements. Set the width property of these images to 180px.

3. [2pts] Style the hyperlinks inside the nav element
Create a ruleset that targets a elements that are direct children of nav elements. Apply the following styles:
color: white;
text-decoration: none;
margin: 10px;
text-transform: uppercase;

4. [3pts] Style the main element
Create a ruleset for main elements that applies the following styles:
padding: 100px 25vw 50px 25vw;
min-height: 55vh;
5. [3pts] Style the “landing” class
Create a ruleset for the landing class that applies the following styles:
background: white;
padding: 50px 15vw 100px 15vw;
display: grid;
grid-template-columns: 60% 40%;
align-items: center;
justify-content: center;
6. [4pts] Style the image inside of the “landing” class
Create a ruleset that target img elements that are direct children of elements with a landing class.  Set the width property of these images to 100%.

7. [3pts] Style the “h1” and “h2” elements
Apply the following style rules to all h1 and h2 elements:
font-family: Malamondo;
font-weight: 400;
text-transform: uppercase;
text-align: center;
This should give your h1 and h2 tags tag a funky custom font (which you’ll notice as you complete Part 3).
8. [3pts] Style the “h1” element inside of the “landing” class
Create a ruleset that target h1 elements that are descendent of elements with a landing class. Apply the following style rules:
color: black;
line-height: 1.2em;
font-size: 1.7em;
font-family: Malamondo-Alt;
This should give your h1 tag on the landing page a slightly different custom font.

9. [3pts] Style the link inside of the “landing” class to look like a button
Create a ruleset that targets a elements that are descendents of elements with a landing class. Apply the following style rules:
text-align: center;
background-color: #013672;
color: white;
border: solid 2px white;
padding: 10px 20px;
font-weight: 300;
margin: auto;
display: block;
width: 100px;
border-radius: 4px;
text-decoration: none;

10. [2pts] Style the footer element
Create a ruleset for footer elements to:
- Give the footer 
50pxof padding - Center the text inside of the footer (using the 
text-alignproperty) 
11. [2pts] Add rulesets to style the other pages
Below the styles you just created, add the following rulesets to style the other pages:
ul {
    margin-bottom: 50px;
}
h2 {
    text-align: left;
}
.location-hours {
    margin-top: 50px;
}
.location-hours p {
    margin: 0;
}
form {
    margin: 0 auto;
    width: 600px;
    padding: 20px;
    border-radius: 4px;
}
form label {
    display: inline-block;
    width: 75px;
    padding: 10px 0px 5px 0;
    margin-top: 10px;
}
form input, form textarea {
    width: 550px;
    padding: 10px;
    border-radius: 4px;
    background: #FFF;
    border: solid 1px #CCC;
    padding-bottom: 20px;
    font-size: 1.2em;
    margin-bottom: 10px;
}
form button {
    border: solid 2px #fff;
    padding: 10px 20px;
    text-transform: none;
    background: #013672;
    color: white;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 1.1em;
}
Verify that you’re done with the styling
When you’re done, the homepage should look like this:

Part 3. HTML Tasks (other files) [30pts]
Please complete the following tasks for each of the three HTML files:
menu.htmlcontact.htmllocation-hours.html
1. [6pts] Stylesheet Link
- Add a 
linktag inside theheadtag of each of the three HTML pages that links tostyles.css(located in theassetsfolder).- Note that the relative path will be different from what it was in 
index.html 
 - Note that the relative path will be different from what it was in 
 
2. [18pts] Header Section
- Copy the entire 
headertag (and everything inside of it) fromindex.htmland paste it into each of the HTML pages above themaintag, but still within thebodytag. - Adjust the file paths for the logo image and hyperlinks so that the relative paths don’t break (now that you’re editing a file in the 
site-pagesfolder). - [Optional – 2pts Extra Credit] Make the Taco Temple logo into a link by wrapping a hyperlink (
atag) around theimgtag. This link should point toindex.htmlin the parent directory. 
When you’re done, menu.html, contact.html, and location-hours.html should all link to one another.
3. [6pts] Footer Section
- Copy the entire 
footertag (and everything inside of it) fromindex.htmland paste it below themaintag. 
Part 4: Link from your homepage [10pts]
When you’re done with the exercise:
- Update your homepage (that you made during Tutorial 3) by adding a link to the 
index.htmlfile that you made in this quiz (and make sure you are using a relative link). Sarah’s quiz looks like this: - Commit and sync your changes to GitHub.
 
Submit
1. Verify that you’re done with the quiz
When you’re done with Parts 1-4, double-check that you’re done:
A. HTML structure
All 4 of the HTML pages you just edited should have a structure and layout similar to the one pictured below (except the hyperlink around the img tag in the header is extra credit):

B. Links all work
Every page should link to every other page (no broken links).
- Note that linking from the detail pages to the index.html page is optional.
 
C. The website should look like this animation

D. Your homepage should link to the quiz.
2. Submit to the Moodle
Please Read Carefully: To submit Quiz 1, paste the following links into the Moodle under the Quiz 1 submission section:
- A link to your homepage on GitHub pages.
 - A link to your GitHub code repository (where your code files are stored).
 
If your GitHub is not working for whatever reason, just zip your COMPLETED quiz01 folder and upload it to the Moodle.