Intermediate Web Literacy I: Intro to CSS | 5. CSS Decoration
Made by Mozilla
60 minutes
Learners will apply text- and box-effect CSS styling techniques to inline and block elements on an HTML webpage, learning about coding, composing, and designing..
Activity 5 of 7
21st Century Skills
Communication Creativity Problem-solvingWrite the Web
Web Literacy Skills
Code Compose Design SynthesizeLearning Objectives
- Understand and be able to explain the connection between an HTML webpage and a CSS stylesheet.
- Apply text- and box-effects to inline and block elements on a webpage using HTML and CSS.
- Make design decisions to emphasize text and other features of a webpage using HTML and CSS.
Audience
- 13+
- Intermediate web users
Materials
- Internet-connected computers
- Markers
- Paper cut into 15.25 cm x 15.25 cm (or 6" x 6") squares
- Pecils and pens
- Optional: decorating supplies such as googly eyes, sequins, or stickers
Check out the ways educators and activists have modified this activity for their specific audiences in our Discussion Forum.
-
1. Preparation
Do the activity on your own to become familiar with how to find and use webfonts on a webpage.
- Follow this link to the Thimble project for this activity.
- Click on the green "Remix" button in the upper right-hand corner of the window to go into the project's code.
- Click on the "Tutorial" pane next to the "Preview" pane in the upper right-hand corner of the coding window.
- Follow the steps in the tutorial to complete the activity. You may also need to check back here and complete some of the steps in this lesson plan to successfully finish the Thimble project.
You can learn more about styling boxes on webpages with CSS from this module created by the Mozilla Developer Network.
Prepare 4-5 squares of 15.25 cm x 15.25 cm (or 6" x6") paper per student.
Practice making paper boxes using instructions from sites like this one or this one Make a few boxes for students who might experience difficulty and/or frustration making their own.
Post the URL, or Web address, of today's project somewhere highly visible in your room. You may want to post it as a shortened link using a service like bit.ly.
-
2. Decorating Boxes IRL
25 minutesContinue discussing CSS and styling with your learners. Explain that styling can make even the most static content - like text and still images - seem appealing and exciting through the use of design to mix colors, fonts, and other effects that draw the user into their webpages. Remind students of all they've learned in this module about styling fonts and objects on a webpage and tell them that today's challenge is to make a box into something amazing that everyone wants to handle and open. Today is all about using CSS decoration techniques to attract users to a webpage.
We're going to style boxes in real life (IRL) and then style a box holding a cat on the Internet.
Up first: boxes IRL. Tell students that we;re goung to make and decorate paper boxes to warm up our design sensibilities and think about the ways CSS impacts the surface of a webpage.
- Ask each student to grab 4-5 squares of paper, or pass out the paper yourself.
- Visit, project, and share a site like this one or this one that shows students how to fold their own paper boxes.
- Invite students to make their own paper boxes, but make sure they know it's okay to mess up and begin again - and it's okay to get help, as well. Be ready to help students who struggle with this part of the activity and have some boxes pre-made for students who want to skip to the decorating part of the activity.
- Suggest that students make two boxes that they can combine into one - a box for the bottom and another for the lid.
- After about 10-15 minutes, encourage students to switch over to decorating their boxes however they think best. The big idea is to create a box other people will want to check out and open. Students can use markers, other coloring tools, and any non-invasive crafting supplies you have available in the room.
- After another 10 minutes or so of decoration, call the group together, ask students to line up their boxes on a table or shelf, and do a quick gallery walk of all the boxes. Remind students to be gentle with their creations!
As the gallery walk winds down, facilitate a brief conversation about the kinds of designs and common design features that seem most effective in grabbing students' attention. After a few students volunteer their answers, ask students to go to their seats for today's Thimble project.
-
3. Decorating with CSS
30 minutesAs students take their seats, explain that today we're going to use several different styling elements on a webpage to give it a unique look and feel for the user. Plus, we'll be working with cats.
Today's project looks a little wacky. Encourage learners to make it even wackier or to try and "clean up" the design as they work. They can turn the page into whatever they want so long as they remember our goal: make the the best online cat box in the world. (Though you should feel free to customize this lesson and project for your audience, too.)
Share the link to today's project with students. You might want to shorten this link ahead of time or else provide a link to it from a class webpage or shared document. Help students who experience difficulty with processing or typing links get to the webpage and encourage classmates to help, as well.
Once students all arrive at the project, invite them to click the green 'Remix' button. This will take students into the Thimble code editor. They will be able to see the code of the webpage, as well as a preview of how it looks in a browser. Students can also switch between this 'Preview' pane (in the upper righthand part of the Thimble interface) and a 'Tutorial' pane that takes them through today's work in a step-by-step way.
Work through the tutorial on a projected computer. Invite students to help one another, but also to work ahead if they feel ready to do so. Through the course of the tutorial, you'll ask students to:
- Choose a style a font on a webpage using multiple effects such as
color
,text-decoratiobn
andtext-shadow
. - Use multiple
box-shadow
effects to customize their webpages. - Mess with the code to see what other styling decisions they can make - or break! - on the page.
- Choose a style a font on a webpage using multiple effects such as
-
4. Reflection and Assessment
5 minutesAfter working through the tutorial, bring students back together as a group and facilitate a brief, reflective conversation about today's work. Make a list of your own questions or ask questions like those suggested below.
If you have time, consider asking students to write, type, or otherwise record their responses for self-assessment and teacher evaluation. Just be sure to match recording technologies to students' needs so that whatever medium (or media) you chose for (or with) the group isn't a barrier to learners' expression.
- How do you find the right balance between everything you can do with CSS and what you should do for a particular webpage?
- How do you make your design decisions?
- What do you think a designer's job is when it comes to styling a webpage?
- How do you know when you have too much or too little going on - design- or style-wise - in a webpage?
- How would you explain the difference between inline parts of a webpage, like links or text, and block elements, like paragraphs or images?
- What seemed easiest about today's work? Most difficult? Why do you think so?
If you or your learners are curious to learn more, check out this Introduction to CSS from the Mozilla Developer Network Learning Area. You can also check out this module on styling boxes with CSS.
Next --> Webotron and the Scrambled Divs