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
- Ponder: ๐ 8 Fundamental Principles of Effective Web Design - Dev.to
- Watch: Learn the Most Common Design Mistakes by Non Designers - Visme
Web Design Principles Summary
- Clarity and Simplicity: Keep the design clean and uncluttered. Use ample whitespace to guide the user's focus and avoid overwhelming them with too much information at once.
- Consistency: Maintain a consistent visual language throughout the design. This includes using consistent typography, color schemes, and layout patterns across different pages or sections of your design.
- Hierarchy: Establish a clear hierarchy of information to help users understand the relative importance of different elements on the page. Use techniques like size, color, and typography to emphasize important content.
- Accessibility: Ensure that your design is accessible to all users, including those with disabilities. This may involve considerations such as providing alternative text for images, using sufficient color contrast, and implementing keyboard navigation.
- Feedback: Provide clear feedback to users when they interact with elements on the page. This could include visual cues such as button states or animations to indicate that an action has been successfully completed.
- User-Centric Design: Design with the needs and preferences of your target audience in mind. Conduct user research to understand their goals, behaviors, and pain points, and tailor your design accordingly.
- Visual Appeal: Use visually appealing elements such as high-quality images, engaging animations, and attractive typography to capture the user's attention and create a memorable experience.
Activity Instructions
File and Folder Setup
- Create a folder named "week03" in the wdd131 directory.
- Add a new file name "design.html" to that week03 folder.
- Add a "styles" folder to the week03 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.
Check Your Understanding
- Example Solution - CodePen
- What other improvements could be made?