0% found this document useful (0 votes)
29 views6 pages

Module 2 CSS Coding Assignment Guide

The Module 2 Coding Assignment for the Coursera course requires students to create a responsive single-page web layout using HTML, CSS, and JavaScript without any frameworks. Students must follow specific guidelines for layout across desktop, tablet, and mobile views, including section titles, spacing, and colors. The assignment should be completed in 1-2 hours and involves setting up a GitHub repository to host the final project for peer review.

Uploaded by

rasidun.bari
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views6 pages

Module 2 CSS Coding Assignment Guide

The Module 2 Coding Assignment for the Coursera course requires students to create a responsive single-page web layout using HTML, CSS, and JavaScript without any frameworks. Students must follow specific guidelines for layout across desktop, tablet, and mobile views, including section titles, spacing, and colors. The assignment should be completed in 1-2 hours and involves setting up a GitHub repository to host the final project for peer review.

Uploaded by

rasidun.bari
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Module 2 Coding Assignment

Coursera course: HTML, CSS, and Javascript for Web Developers

Woo-hoo! You get to do some coding! Exciting!

Time to complete: 1-2 hours. It may take you less time than that if you’ve absorbed the
material in this module well. Ask questions in Discussions if you get stuck! We are
all learning, and going through getting stuck and then unstuck (even with
someone’s help) can be a very valuable learning experience!

Don’t get scared by the number of points below. It’s really not so much. I just
wanted to explain everything as clearly as I could and break it down into smaller
steps.

Here is what you will need to complete the assignment:

1. (If you haven’t already) Create a [Link] account and a repository that you
will use for this class.

2. (If you haven’t already) Follow the Development Setup Video (beginning of
Module 1) instructions on how to create a repository and set it up such that you
can host and view your finished web pages on GitHub Pages, i.e., [Link]
domain name. You will need to provide that URL for your peer review.

3. Create a folder in your repository that will serve as a container folder for your
solution to this assignment. You can call it whatever you want. For example,
‘module2-solution’ or ‘mod2_solution’, etc. Create an '[Link]' file inside the
solution container folder, e.g., 'module2-solution/[Link]’.

4. The implementation of the page you will be creating should follow the mockup
illustrations shown below. You are provided 3 mockups: desktop, tablet, and
mobile. Your implementation has to be JUST 1 page, NOT 3 pages. In other
words, you will be creating a single, responsive page.

5. Your page must include a CSS file. No inline styles allowed. Your CSS file
should be placed into a 'css' folder under the solution container folder, e.g.,
'module2-solution/css'.

6. You are NOT allowed to use any CSS (or Javascript) framework for this
assignment, including Twitter Bootstrap CSS Framework. No framework CSS
files should even be referenced in your [Link], even if you are not using
them. However, you MAY use the simple responsive framework we
developed in Lecture 24 as a starting point for this assignment.

7. You must implement the following breakpoints that will be considered desktop,
tablet, and mobile. The browser should display a desktop version of the site
when the width of the browser window is 992px and above. Tablet view should
appear only if the width of the browser window is between 768px and 991px,
inclusively. Mobile view should appear only if the width of the browser is equal
to or less than 767px.

8. Your site is very simple. It consists of a page heading and 3 sections (all in one
row in the desktop view). Each section contains some text. You can make it
dummy text/”lorem ipsum”, it doesn’t matter. How the sections are laid out on
the screen depends on the width of the browser window. (Hint: use media
queries discussed in Lecture 23.)

9. Layout: In the desktop view (992px and above), each of the 3 sections should
take up equal amount of space on the screen. As you make the browser window
wider or narrower, each section should become wider or narrower. (Hint: use
percentages to define width and use the ‘float’ property. See Lecture 24). For a
visual reference of this view, see the desktop mockup illustration below.

10. Layout: In the tablet view (between 768px and 991px, inclusively), the first 2
sections should be in the first row and be of equal size. The 3rd section should
be in the second row and take up the entire row by itself. For a visual reference
of this view, see the tablet mockup illustration below.

11. Layout: In the mobile view (equal to or less than 767px), each section should
take up the entire row. For a visual reference of this view, see the mobile
mockup illustration below.

12. Section title region: Each section should have a section title region that is
always positioned at the top right corner of the section no matter the view
(desktop, tablet or mobile). Copy the titles from the mockup illustration (i.e.,
Chicken, Beef, Sushi) or come up with your own. (Hint: use relative and
absolute positioning and offsets as discussed in Lecture 22.)

13. Spacing: Pay attention to the spacing shown in the mockup illustrations. Note
the spacing between sections (both horizontal and vertical). Note the horizontal
spacing between the edges of the section and the edges of the browser
window. Also, note the spacing between the dummy text in each section and the
edges of the section. Lastly, make sure the dummy text is “pushed down”
enough so it doesn’t overlap the section title region. (Hint: use margins and
padding and use border-box as your box-sizing as discussed in Lecture 19.)

14. Borders and Colors: Each section should have a background color set to some
color (of your choosing). Set the background color of each section title region to
some unique color (of your choosing). Make sure that the background color still
allows the user to view the text in the section and section title regions.
Depending on the color you choose, you may want to change the color of the
text so it can be easy to read. Set a black border on both the section and
section title region that is 1px thick. Warning: While not specifying borders
and colors according to the requirements does not hurt your grade so
much, not doing so will make it much harder for your classmates to peer
grade the rest of your assignment, possibly resulting in a much lower
grade.
15. (OPTIONAL) You will NOT be graded on this, but you may want to explicitly set
a font-family for the text in your page, so you are not stuck with the default
browser font family. Also, set the font size of the heading and section title to be
75% larger and 25% larger (respectively) than the font size of the dummy text.

Here is the mockup illustration of the desktop version of the site. Your final result should
look very close to this mockup.

Here is the mockup illustration of the tablet version of the site. Your final result should
look very close to this mockup. Note that in this view, the 3rd section takes up the entire
row.
Here is the mockup illustration of the mobile version of the site. Your final result should
look very close to this mockup.

Common questions

Powered by AI

Proper spacing within each section should be managed using margins and padding, ensuring text does not overlap with the section title regions. Horizontal and vertical spacing between sections and browser edges must follow mockup illustrations. The use of box-sizing as 'border-box' ensures that padding and border widths do not affect the overall width and height calculations of elements .

The assignment requires using an external CSS file placed in a 'css' folder, prohibiting inline styles and CSS frameworks like Bootstrap. However, the simple responsive framework from Lecture 24 can be used as a starting point. CSS should define layout, section spacing, background colors, and borders, with media queries to manage responsiveness .

Accurate implementation can be verified by comparing the layout with mockup illustrations for each view (desktop, tablet, mobile). Inspect tools in web browsers can assist in checking CSS properties like margins and padding to ensure they align with specifications. Adjustments are made by tweaking styles until elements fit as per mockup guidance .

In the desktop view (992px and above), all three sections should display in one row, each taking up an equal amount of space. The tablet view (768px to 991px) places the first two sections in one row, with the third section taking up the entire second row. For the mobile view (767px and below), each section occupies the entire row. Media queries should be used to achieve these layouts .

Each section and section title should have a background color that contrasts enough with text to maintain readability. The colors of titles are uniquely set for distinctiveness. A 1px black border should surround both sections and titles, aiding in visual separation and design consistency between the elements .

Media queries are essential for creating a responsive webpage by allowing the layout to adapt to different screen sizes. They enable the transition between desktop, tablet, and mobile layouts, ensuring appropriate section arrangements and widths for each view. This responsiveness is achieved by specifying CSS rules that apply only when the browser width matches specific conditions .

Managing fonts is crucial for readability and aesthetic appeal. In this assignment, setting explicit font families prevents default browser fonts, and scaling the font size by 75% for headings and 25% for section titles relative to the text ensures visual hierarchy and emphasis on important content .

Section title regions must consistently appear at the top right corner of each section in all views (desktop, tablet, mobile). This can be done by using CSS's relative and absolute positioning techniques, ensuring the layout remains correct regardless of screen size .

Excluding CSS frameworks encourages students to learn core web development skills by creating styles manually via CSS properties. This strengthens understanding of how components interact and ensures learners can build responsive designs without relying on pre-built styles, which enhances problem-solving and innovation skills when dealing with layout challenges .

To begin the Module 2 coding assignment, you must first create a GitHub.com account and a repository for the class. Follow the instructions in the Development Setup Video from Module 1 to host and view your web pages on GitHub Pages, providing the URL for peer review. Create a container folder in your repository for your solution, such as 'module2-solution', and an 'index.html' file inside it .

You might also like