Intermediate Web Literacy II | Storytelling with Scripts | 2. Storytelling with Three Buttons

Made by Mozilla

30 to 45 minutes

Learn how to write multiple, short functions that each connect to a button on a webpage.

Activity 2 of 8

Write the Web

21st Century Skills

Communication Creativity

Web Literacy Skills

Code Compose Remix Revise

Learning Objectives

  • Understand how CSS stylesheets and JavaScript code connect to an HTML webpage.
  • Code multiple buttons and a script that work together to tell a story inside through alert windows.

Audience

  • 13+
  • Intermediate web users

Materials

  • An Internet-connected, projected instructor computer
  • Internet-connected computers
  • Markers
  • Paper
  • Scissors