Skip to content
nuggetof joy

Post · October 22, 2026

AMDE 155: Give Your Website a Personality (Week 5)

AMDE 155 · INTRODUCTION TO WEB DESIGN · WEEK 05

Give Your Website a Personality

HTML gives a website its structure. CSS gives it a visual identity. This week, we begin styling our pages with color, backgrounds, text colors, and simple design rules. Think of CSS as a set of instructions for how your ideas should look and feel.

CSS Foundations Color Selectors Visual Identity

01 / THE BIG IDEA

Structure versus appearance

Imagine two websites with exactly the same words and images. One uses a white background, black text, and lots of open space. The other uses a dark background, bright colors, and bold typography. They might communicate very different moods even though their content is identical.

HTML organizes the content. CSS controls much of its appearance. Together, they give us the foundation for designing websites.

01

HTML

Defines the content and its structure: headings, paragraphs, images, and links.

02

CSS

Controls presentation: color, typography, backgrounds, spacing, and layout.

03

Design

Combines content and visual decisions to create a clear and engaging experience.

Today’s goal: Use basic CSS rules to change the colors and appearance of your existing HTML page. You do not need to memorize the syntax. Work through the examples and experiment.

02 / HOW CSS WORKS

Meet the CSS rule

A CSS rule tells the browser which elements to style and what changes to make. It has three basic parts: a selector, one or more declarations, and values for the properties you want to change.

A SIMPLE CSS RULE
h1 {
  color: blue;
}
  • Selector: h1 tells the browser which elements to target.
  • Property: color specifies what you want to change.
  • Value: blue specifies the color to apply.
  • Braces and semicolon: The braces contain the declaration, and the semicolon ends it.

CSS rules can contain several declarations:

CHANGE COLOR AND SIZE
h1 {
  color: blue;
  font-size: 40px;
}
Notice the pattern: The selector appears once, followed by braces containing each property and its value. Each declaration ends with a semicolon.

03 / YOUR CSS WORKSPACE

Use the CSS panel in CodePen

In previous weeks, we focused mainly on the HTML panel. Now we will use CodePen’s CSS panel to style the HTML we have already written.

01

HTML panel

Contains your headings, paragraphs, links, lists, and images.

02

CSS panel

Contains the styling rules that change how the HTML appears.

03

Preview

Shows the result. As you change your code, CodePen updates the preview.

Important: The following CSS examples belong in the CSS panel, not the HTML panel. You do not need to add <style> tags around CSS when using CodePen’s separate CSS panel.

04 / COLOR

Choose a color palette

Color can establish a mood, create contrast, connect elements, and help a website feel consistent. Rather than choosing every color independently, designers often develop a small palette that works together.

#182033
Deep navy
Backgrounds
#2855D9
Blue
Links and accents
#B8F34B
Lime
Highlights
#F2F4F8
Light gray
Page backgrounds

Three ways to write a color

CSS supports several color formats. For now, we will focus on named colors and hexadecimal values.

NAMED COLOR
h1 {
  color: tomato;
}
HEX COLOR
h1 {
  color: #2855d9;
}
RGB COLOR
h1 {
  color: rgb(40, 85, 217);
}

All three examples set the text color. Hexadecimal and RGB let you specify colors precisely, which is useful when building a consistent palette.

Design challenge: Choose three colors for your own website: a main color, an accent color, and a background color. Think about the mood you want to communicate.

05 / YOUR FIRST VISUAL IDENTITY

Style the whole page

Let’s start with a few rules that establish the overall look of a page. These selectors target the body, headings, paragraphs, and links.

COPY INTO CODEPEN’S CSS PANEL
body {
  background-color: #f2f4f8;
  color: #182033;
  font-family: Arial, sans-serif;
}

h1 {
  color: #2855d9;
}

h2 {
  color: #182033;
}

a {
  color: #2855d9;
}

Try the code before changing anything. Then experiment with the colors and font family. Notice how a few rules can change the personality of the entire page.

What do these properties do?

  • background-color sets an element’s background color.
  • color sets the text color.
  • font-family specifies the typeface or font stack.
One rule, many elements: A body rule can establish default text and background colors for the page. More specific rules, such as the h1 rule, can give particular elements their own styling.

06 / SELECTORS

Style specific elements

So far, we have used element selectors such as h1 and p. CSS also lets us target elements by class. Classes are useful when you want to apply the same design to selected elements without changing every heading or paragraph.

ADD A CLASS IN HTML
<h2 class="highlight">Featured Project</h2>

<p class="highlight">
  This project is especially important to me.
</p>
STYLE THE CLASS IN CSS
.highlight {
  color: #2855d9;
  background-color: #e8edff;
}

The period before highlight tells CSS that you are targeting a class. Any HTML element with class="highlight" receives these styles.

Element selector

p styles all paragraphs that match the selector.

Class selector

.highlight styles elements assigned that class.

HTML class

class="highlight" connects the element to the CSS rule.

Common mistake: If the class name in your HTML does not match the CSS selector exactly, the rule will not apply. Remember the period in CSS, but do not include it in the HTML class value.

07 / DESIGN WITH CONTRAST

Make important information stand out

Color is not just decoration. Contrast helps visitors distinguish text from backgrounds and identify important information. Text that looks attractive but is difficult to read is not effective design.

Strong contrast

Important information

Light text on a dark background.

The text is easy to distinguish from the background.

Weak contrast

Important information

Light text on a light background.

The text becomes difficult to read.

As you experiment with color, make sure that important text remains readable. Color should not be the only way you communicate meaning; labels and clear structure matter too.

Quick check: Can you comfortably read your text? Does your link color stand out? Would the page still make sense to someone who has difficulty distinguishing certain colors?

08 / SYNCHRONOUS CLASS ACTIVITY

Give the same page three different moods

During our live session, we will use one simple HTML page and explore how CSS changes its personality. You will experiment with three visual directions.

A

Minimal

White or light background, dark text, restrained accent color, and plenty of visual breathing room.

B

Bold

Strong color contrast, an expressive heading color, and a more energetic visual identity.

C

Atmospheric

Dark background, light text, and a carefully chosen accent color to establish a particular mood.

Guided exercise

  1. Open your Week 4 project in CodePen.
  2. Find the CSS panel and add the starter rules from Section 5.
  3. Change the body background and text colors.
  4. Change the main heading color.
  5. Change the link color to complement the palette.
  6. Try a different font family, such as Arial or Georgia.
  7. Compare your results with the class and explain which mood you prefer.
Design question: How does changing only the color palette and typeface alter the way the same content feels?

09 / INDEPENDENT PROJECT

Develop a visual identity

Continue working with your personal-interest website. This week, use CSS to create a basic visual identity that supports the subject and audience of your page.

01

Choose a direction

Decide what you want the page to communicate: calm, playful, energetic, elegant, experimental, or something else.

02

Build a palette

Choose a background color, a main text color, and at least one accent color.

03

Apply your styles

Use CSS selectors to style the page’s background, headings, paragraphs, and links.

Project requirements

  • Continue using your existing HTML project.
  • Add CSS in CodePen’s separate CSS panel.
  • Set a background color and a readable default text color.
  • Style the main heading and at least one other heading level.
  • Choose a font family for the page.
  • Style hyperlinks so they are identifiable and readable.
  • Use at least one class selector to style a specific element or group.
  • Choose a consistent palette and maintain adequate text contrast.
  • Submit your working CodePen link through D2L.
Keep the scope manageable: You are not expected to build a polished professional website yet. Focus on learning how CSS rules work and making intentional visual decisions. We will explore typography and spacing in more detail next week.

10 / SUBMISSION & REFLECTION

Explain your design decisions

Submit your CodePen link through the Week 5 assignment area in D2L. Make sure your CSS is visible in the CSS panel and your page still contains the content and navigation from previous weeks.

Reflection questions

  1. What mood or personality were you trying to create with your color choices?
  2. Which CSS property was easiest to understand, and which one needs more practice?
  3. How did your page change when you separated the content in HTML from its appearance in CSS?

11 / QUICK REFERENCE

CSS terms from this week

Selector

Identifies which HTML elements a CSS rule targets.

Property

Identifies what you want to change, such as color or font size.

Value

Specifies the setting for a property.

color

Changes the text color.

background-color

Changes an element’s background color.

font-family

Specifies the typeface or font stack.

Class selector

Uses a period followed by the class name, such as .highlight.

Hexadecimal color

Uses a value such as #2855d9 to specify a color.

12 / LOOKING AHEAD

Next week: Typography & readability

We have started using CSS to establish a visual identity. Next week, we will look more closely at typography, text size, line spacing, and readability.

As you browse websites this week, notice how color and typography work together. Ask yourself whether the visual style supports the content and whether the text remains comfortable to read.