ahandrewh teaches IAT-339web design & development

CSS exercise (due Sept 29)

Introduction

This week's exercise has you styling a portion of your style guide using CSS.

Instructions

Using your last week's exercise deliverables or the style guide template as a starting point, apply the following styling to the guide using a linked CSS file.

  1. Change the default font.
  2. Add space between <section> elements.
  3. Add a different hover and focus state styling to the in-text link.
  4. Add a different hover and focus state styling to the image as a link.
  5. Shorten the default width of the <p> element, but ensure it is still responsive when the viewport shrinks.
  6. Style the <input> and <label> using Styling Forms (web.dev) as a guide. Add HTML as necessary to allow further control of the styling, and make sure:
    • The label and text input look visually related.
    • The text input shows us when it has been interacted with, both on hover and focus.

Once done styling the guide

  1. Add comments through-out the code to indicate what resources you drew upon to complete the exercise.
  2. Validate the page using the CSS Validator (W3C) to find any errors or potential problems in your markup.
  3. Please upload your files to our SFU filespace and submit the URL to the Canvas assignment.

If you have trouble uploading your file please email Andrew.

Your submission is due before lecture on Sept 29.

Grading rubric

This code exercise is worth 1% (1 point) of your final grade.

Exercise rules reminder

Please remember that the exercise rules still apply:

  1. You can use online resources, course materials, your TA, and lab-mates for support. This being said, others are not allowed to do your work for you. Also, if you are drawing from online resources, course materials, your TA or peers, you must;
  2. Cite any knowledge that is not yours in a comment in the code. The internet is a huge repository of information and you are welcome to use it, but you must let us know when something does not originate from your own knowledge.
  3. If work has been copied without citation the exercise grade will be zero. Please make sure to include comments indicating where you had assistance or learned.