Assignment-02-Winter2024 - Intro To Web Development
Assignment-02-Winter2024 - Intro To Web Development
Assignment
In this assignment, you will create a landing page for a fictional retailer using HTML and CSS. You will use a
variety of HTML and CSS elements to structure the page, style the content, and create visual interest. By the end
of the assignment, you will have gained experience with semantic elements, anchor tags, lists, image tags, relative
paths, colors, combinator selectors, box model, margins, padding, borders, background image, and background
gradients.
Outcomes:
This assignment will demonstrate your ability to create a valid HTML5 referencing internal and external
resources.
Page 3 of 10
Task
You will need to create a single page called "index.html" within the
comp1234/assignments/assignment02/ folder (you may use your template.html file). On this page, you will
need to add four sections (Welcome, Reviews, Products, and Purchase) use bookmarks to traverse the sections
on the page. (The retailer you create must be fictitious, you can not use real companies for the
assignment.)
The webpage must be created from scratch, no copy and paste from other code . Make sure you
understand what the code is doing, if superfluous code (extra non-functional code) is found a penalty will
be applied. You are NOT allowed to use any external frameworks or web page builders to create your web
pages. (bootstrap etc.…) You can not use Flex Box or Grid to position elements , use float, position, margin
and any other methods learned in class.
Head Section:
Body Section:
Header:
Navigation:
1. You must use an unordered list for the menu and the navigation semantic element.
2. Create a horizontal menu of 6 list items with hyperlinks to different sections on the webpage and
external pages.
3. You must have a hyperlink to your reflection page and your CSS file in the menu.
4. The menu must stay at the top of the screen as you scroll down the page.
Welcome:
Page 4 of 10
4. Add a paragraph element with text about The Retailer's focus on innovation and products.
5. Add an image of the Product.
6. Use Float so the image is on the left and the paragraph appears to the right of the image.
7. Add another heading element with the text "Why Choose this Product?" inside the section.
8. Add an unordered list with 4 list items that list various reasons to choose The Product. Use CSS to
make every other line’s background color different (Zebra stripe).
9. Add another heading element with the text "Purchase the Product" inside the section.
10. Add a paragraph element with text "Ready to join the product community? Purchase today!" inside
the section.
11. Add a link to apply with the text "Purchase Now" and use CSS to make it a button. (Link is to the
Purchase section)
Reviews:
Product:
1. Create a list item 3 in the navigation bar with a hyperlink to the Product.
2. Create a section with id "product".
3. Add a heading with text "Product”. ". i.e., where Product is the name of your fictitious product.
4. Add a paragraph describing the retailer's view on the importance of a well-rounded product
experience, and what the product is designed to provide.
5. Add a figure element with two images of the product.
12. Add a caption with some text e.g. "The Product". ". i.e., where Product is the name of your
fictitious product.
6. Images must be centered on the screen beside each other horizontally.
7. Add a paragraph that describes the product, along with information about the products uses.
Purchase:
Page 5 of 10
Semantic footer:
You must use at least one selector from each of the following selector categories:
• Simple selectors (select elements based on name, id, class)
• Combinator selectors (select elements based on a specific relationship between them)
• Pseudo-class selectors (select elements based on a certain state)
• Pseudo-elements selectors (select and style a part of an element)
• Attribute selectors (select elements based on an attribute or attribute value)
Page 6 of 10
Example (Whole page – is one web page split into sections):
Page 7 of 10
Reflection
In addition to the tasks outlined in the previous description, you will also need to create a file called
"assignment2-reflection.html" in the comp1234/assignments/assignment02 directory.
In your own words, write about what you learned while completing this assignment. Some questions you may
want to consider answering include:
This reflection should be at least 250 words and written in proper English.
Page 8 of 10
Rubrics:
Your assignment will be evaluated based on the above-mentioned points and the following points.
# Description Point
1 Head section done correctly (Title, meta, links) 4
2 Semantic HTML elements used 5
3 Anchor tags used to link to on page bookmarks 5
4 Links to CSS and reflection added to menu 5
6 Lists used to display information about the retailer 5
5 Img tags used to display images of the product centered on page 5
6 Relative paths used to link to local images and pages 4
7 Float used correctly 4
8 CSS selectors used to target specific elements (pseudo, simple, combinator, 5
attribute, etc.…)
9 12 essential CSS rules applied 12
10 Margins, padding, and borders used to adjust spacing and appearance 3
11 Background image used to add visual interest 5
12 Background gradient used to add depth and dimension 5
13 Reflection questions answered thoughtfully - assignment02-reflection.html 5
(250 words)
14 Overall presentation and professionalism 5
15 Presence of validation script at the bottom of the page. 5
16 No Misspelled file or directory names 3
17 Valid HTML5 (no error, no warning) 15
18 For every non-functional (superfluous) piece of code -1
19 Use of Flex Box or Grid -15
20 For each use of div -1
Total 100
The webpage must be created from scratch, no copy and paste from other code . Make sure you
understand what the code is doing, if superfluous code (extra non-functional code) is found a
penalty will be applied.
# Description
1 Placing your assignment files and directory in the wrong path.
2 Forgot to upload your code to your GBLearn account.
3 Forgot to submit your assignment via my.gblearn.com
4 Using any external frameworks or builders to create your webpages.(bootstrap etc…)
Late assignment 10% per day to a maximum of 5 days, including weekends.
Validation Script
<script src=https://my.gblearn.com/js/loadscript.js></script>
Page 9 of 10
Uploading Your Profile Changes
This next step outlines the steps you must perform to upload your changes back to the GBlearn server.
1. Make sure to open FileZilla and connect to your GBLearn account, using your GBLearn username/password
credentials.
2. Upload the following:
3. Make sure you can access the assignment files and folder on your GBLearn via browser.
https://username.gblearn.com
My.GBLearn submission
Page 10 of 10