Intermediate Web Literacy I | Webotron and the Scrambled Divs
Made by Mozilla, released under the CC-BY-SA license
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, desining, evaluating, and synthesizing.
Web Literacy Skills
-
Read
Evaluate Synthesize -
Write
Code Compose Design
21st Century Skills
Learning Objectives
- Understand and be able to explain the connection between an HTML webpage and a CSS stylesheet.
- Re-order divs using HTML.
- Use CSS to float div elements on an HTML webpage into different positions relative to one another.
Audience
- 13+
- Intermediate web users
Materials
- Internet-connected computers
- Markers
- Graph paper
- Pecils and pens
- Scissors
-
1. Preparation
Learning Progression
In this lesson, your learners will:
- Each draw and color a robot they can then cut up into large pieces to make a simple puzzle.
- Remix this Thimble project using positioning and the
float
attribute for cascading Stylesheets (CSS) to complete a puzzle of a robot on the webpage. - Reflect on their learning.
You Should...
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.
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. Puzzling Out the Importance of Layout and Order
25 minutesWorking with learner-generated puzzles, explore the importance of ordering and positioning in a complete design.
- Gather learners and explain that today we'll be looking at the importance of order and layout in creating a unified design. First, we'll use markers, paper, and scissors to do so; then we'll use a Thimble activity to learn more about ordering
div
elements using thefloat
property to create webpage layout using HTML and CSS. - Ask learners to take 10 minutes to draw and color an illustration of a robot. Feel free to pick a better theme for your community. The illustration should take up most of the height and width of standard sheet of composition paper. You should also provide a few blank robot templates for learners to color in in case some learners feel overwhelemed by the idea of drawing and coloring a robot in the given amount of time.
- After 10 minutes, ask learners to turn their robots into puzzles. Ask them to use scissors to cut their robot into several pieces, but also ask them to keep each piece at 1" x 1" in size so that puzzles don't become too complex and pieces aren't easily lost. Give learners about 5 minutes to turn their illustrations into puzzle pieces.
- Use an equitable method to pair learners and have them exchange robot puzzles.
- Give learners 5-10 minutes to complete their partners' puzzles.
- After learners have had enough time to solve their puzzles, facilitate a brief conversation about the importance of ordering and layout to a unified design. Ask learners why it might be important for the parts of a webpage to fit together like the pieces of a completed puzzle.
After discussing the importance of getting the part of a webpage to 'fit' together, ask learners to take their seats at computers.
- Gather learners and explain that today we'll be looking at the importance of order and layout in creating a unified design. First, we'll use markers, paper, and scissors to do so; then we'll use a Thimble activity to learn more about ordering
-
3. Unscrambling a CSS Layout with Float
30 minutesOnce learners have returned to their seats and computers, explain that today we're going to look at how we can use the
float
andclear
properties on a CSS stylesheet to position HTML elements relative to one another on a webpage.Share the link to today's project with learners. You might want to shorten this link ahead of time or else provide a link to it from a classwebpage or shared do.
Once learners all arrive at the project, invite them to click the green 'Remix' button. This will take learners into the Thimble code editor. They will be abablelse to see the code of the webpage, as well as a preview of how it looks in a browser. learners 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 learners 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 learners to:
- Reorder scrambled div elements so that they appear in the correct order on an HTML webpage.
- Learn how the
float
andclear
CSS proprties can work together toposition
block elements relative to one another on an HTML webpage. - Apply
float
andclear
CSS properties to 'solve' the puzzle of the scrambled layout of an HTML webpage. - Mess with the code to discover new ways to style a webpage and order its layout in an independent and playful way.
-
4. Reflection and Assessment
5 minutesAfter working through the tutorial, bring learners 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 learners to write, type, or otherwise record their responses for self-assessment and teacher evaluation. Just be sure to match recording technologies to learners' needs so that whatever medium (or media) you chose for (or with) the group isn't a barrier to learners' expression.
- How are
float
andclear
similar to and different from other layout properties we've used likeposition
? - When might you use
float
as a layout technique instead ofposition
? - What are the advantages of having a unified design or layout instead of a scambled or random one?
- Can you think of times when you might want a more broken or seemingly disorganized layout?
- How did styling from the CSS stylesheet interact with the HTML elements on the webpage? What's the connection there? What seemed easiest or most difficult about today's work? Why?
If you or your learners are curious to learn more, check out this Introduction to CSS from the Mozilla Developer Network Learning Area.
- How are