Web Design Principles
Overview
The principles of good design should be practiced in web design to promote a positive user experience. One goal of this course is to provide a reasonable foundation in good design. These principles should be understood, practiced, and continuously improved upon. It takes applied practice and actively seeking constructive feedback from others.
Prepare
- Read: π 8 Fundamental Principles of Effective Web Design - Dev.to
- Watch: π¦ Learn the Most Common Design Mistakes by Non Designers - Visme
Activity Instructions
File and Folder Setup
- Create a folder named "week02" in the wdd230 directory.
- Add a new file name "design.html" to that week02 folder.
- Add a "styles" folder to the week02 folder.
- Add a new file named "design.css" to the styles folder.
HTML
- In the design.html file, provide the basic HTML structure to the file.
Remember that Emmet notation built into VS Code provides shortcuts to code snippets. For example, type
html5
and then the TAB key to build a basic HTML5 structure.User defined custom snippets can also be used: VS Code Snippets. - Link the external design.css file.
- Add the given CodePen HTML content to the
<body>
of the document: βοΈ CodePen Design Starter
CSS
- In the design.css file, copy over the starter CSS code found in the CodePen.
- Fix the padding issues on the div.callout container.
- Fix the
<h2>
alignment justification to be left aligned instead of centered. - Check the color contrast by using the CSS Overview tool in the browser's
DevTools.
How to enable and use CSS Overview: π CSS Overview: Identify potential CSS improvements
- Enter the foreground and the background colors given of the div.callout container into the
Contrast Ratio tool.
What is the ratio? Is that good or bad?
The contrast ratio was 2.14 for #777 and #702963. πThis is not good. Specifically, it fails WCAG 2.0 and 2.1 (Web Content Accessibility Guidelines)
- Fix the contrast issues in the div.callout and check to make sure it passes both the AA level and AAA level.
- Layout the
<main>
element content to use two columns for the article and list.- Do not add any additional HTML.
- Use the
grid-template-columns
property to create the two columns. - The
<h2>
heading within this<main>
container will need to span the two columns.How do you do that?
Use the
grid-column
property on this<h2>
to span the two columns.
- Delete the marquee and replace it with an
<div class="banner">
stationary area as shown in Figure 1.Why delete the marquee? The marquee element is not supported in HTML5 and is considered deprecated (obsolete or being phased out) even though it may be rendered by most browsers. In terms of design and usability, the marquee is not good because it is unpredictable and distracting. It is also not accessible to users with disabilities.
- Move the footer content to the left.
Submission
- Update the course home page with a link to this assignment file.
- Publish the changes to the wdd230 GitHub Pages repository.