├── CONTRIBUTING.md ├── LICENCE.md ├── README.md ├── hardware.yml ├── images ├── coder.png └── login.png ├── ks2.md ├── ks3.md ├── learn.md ├── lesson-1 ├── lesson.md └── worksheet.md ├── lesson-2 ├── images │ ├── final.png │ ├── new-page.png │ ├── new-project.png │ ├── project-settings.png │ └── text.png ├── lesson.md └── worksheet.md ├── lesson-3 ├── homework_sheet.md ├── images │ ├── adding-media.png │ └── video.png ├── lesson.md └── worksheet.md ├── lesson-4 ├── files │ └── html-cards.pdf ├── images │ ├── CSS-panel.png │ ├── Raspi_Colour_R.png │ ├── blurry-text-html.png │ ├── blurry-text.png │ └── fonts.png ├── lesson.md └── worksheet.md ├── lesson-5 ├── images │ ├── background-colour.png │ ├── background-image.png │ └── colour.jpg ├── lesson.md └── worksheet.md ├── lesson-6 └── lesson.md ├── meta.yml ├── overview.md ├── software.md └── software.yml /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | All contributions are assumed to be licensed under the same license as the source, i.e. CC BY-SA. This license must remain in all derivatives of this work. 4 | 5 | ## Issues 6 | 7 | If you find a mistake, bug or other problem, please [open an issue](https://github.com/raspberrypilearning/coder-html-css-lessons/issues) in this repository. 8 | 9 | ## Pull Requests 10 | 11 | If you fix a mistake, bug or problem or have something to contribute, please create a pull request for each modification. Please consider grouping modifications sensibly, i.e. don't bundle typo fixes in the same pull request as code changes, instead file them separately. 12 | 13 | Please note that sometimes things are done for pedagogical reasons so changes which make sense from a software engineering perspective (reducing duplication or making use of more advanced programming language features) may not be suitable to maintain the intended educational value. 14 | 15 | ## Derivatives 16 | 17 | The licence must remain in all derivatives of this work. 18 | 19 | ## Licence 20 | 21 | Unless otherwise specified, everything in this repository is covered by the following licence: 22 | 23 | ![Creative Commons License](http://i.creativecommons.org/l/by-sa/4.0/88x31.png) 24 | 25 | ***Coder HTML & CSS Lessons*** by the [Raspberry Pi Foundation](http://raspberrypi.org) is licenced under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/). 26 | 27 | Based on a work at https://github.com/raspberrypilearning/coder-html-css-lessons 28 | -------------------------------------------------------------------------------- /LICENCE.md: -------------------------------------------------------------------------------- 1 | # Licence 2 | 3 | Unless otherwise specified, everything in this repository is covered by the following licence: 4 | 5 | ![Creative Commons License](http://i.creativecommons.org/l/by-sa/4.0/88x31.png) 6 | 7 | ***Coder HTML & CSS Lessons*** by the [Raspberry Pi Foundation](http://raspberrypi.org) is licenced under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/). 8 | 9 | Based on a work at https://github.com/raspberrypilearning/coder-html-css-lessons 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **This is an archived resource.** The repo will remain available but the resource will no longer be maintained or updated. Some or all parts of the resource may no longer work. To see our latest resources, please visit [raspberrypi.org](http://www.raspberrypi.org). 2 | 3 | # Google Coder - HTML & CSS Scheme of Work 4 | 5 | [![](images/coder.png)](https://www.youtube.com/watch?v=wH24YwdayFg) 6 | 7 | ## Introduction 8 | 9 | [Google Coder](http://googlecreativelab.github.io/coder/) is a free, open source project that turns a Raspberry Pi into a simple platform that educators and parents can use to teach the basics of building for the web. New coders can craft small projects in HTML, CSS and Javascript, right from the web browser. 10 | 11 | This scheme of work will introduce students to the infrastructure of website development, in particular the concept of web pages (HTML & CSS) and web servers. It is specifically targeted towards KS2/KS3 Computing. This has been developed in harmony with the new Computing curriculum in the UK and is based on the [Google Coder Project - The Perfect Recipe](http://googlecreativelab.github.io/coder-projects/projects/perfect_recipe/). 12 | 13 | ##Learning outcomes: 14 | 15 | Over the course of six lessons, students will learn: 16 | 17 | - How to turn a Raspberry Pi into a webserver 18 | - How to create webpages using HTML & CSS, in particular: 19 | - Different ways to display text with HTML 20 | - Adding images and videos 21 | - Adding CSS style 22 | 23 | ## Computing Programme of Study Met: 24 | 25 | **KS2:** 26 | 27 | - Understand computer networks, including the internet; how they can provide multiple services, such as the World Wide Web, and the opportunities they offer for communication and collaboration. 28 | - Select, use and combine a variety of software (including internet services) on a range of digital devices to design and create a range of programs, systems and content. This will accomplish various goals including collecting, analysing, evaluating and presenting data and information. 29 | 30 | **KS3:** 31 | 32 | - Understand the hardware and software components that make up computer systems, and how they communicate with one another and with other systems. 33 | - Create, reuse, revise and repurpose digital artefacts for a given audience, with attention to trustworthiness, design and usability. 34 | - Understand a range of ways to use technology safely, respectfully, responsibly and securely, including protecting the students' online identity and privacy. Recognise inappropriate content, contact and conduct, and know how to report concerns. 35 | 36 | [National Curriculum Computing Programmes of Study](https://www.gov.uk/government/publications/national-curriculum-in-england-computing-programmes-of-study/national-curriculum-in-england-computing-programmes-of-study#key-stage-3) 37 | 38 | ## Resources 39 | 40 | For the majority of the lesson, it is suggested that work is carried out by students on a Raspberry Pi in pairs. Each pair should have access to the standard equipment described below, and each should have a computer with a web browser connected to the network. As there will be multiple Raspberry Pis acting as servers some setup is required in configuring them. [See multiple coder devices setup guide](https://github.com/googlecreativelab/coder/wiki/Using-Multiple-Coder-Devices-(Lab-Setup)). In addition, it is suggested that you have your own teacher setup connected to a projector screen for demonstration purposes. The checklist is below: 41 | 42 | - A Raspberry Pi per pair connected to the local network 43 | - An [SD card with Google Coder installed](http://googlecreativelab.github.io/coder/) per Raspberry Pi, configured to allow multiple coder devices 44 | - A computer per student with a web browser connected to the local network 45 | 46 | ## Lessons 47 | 48 | - [Lesson 1 - Websites & Webservers](lesson-1/lesson.md) 49 | - [Lesson 2 - What is HTML?](lesson-2/lesson.md) 50 | - [Lesson 3 - Adding Images and Other Media](lesson-3/lesson.md) 51 | - [Lesson 4 - Adding Style with CSS](lesson-4/lesson.md) 52 | - [Lesson 5 - Colour with CSS](lesson-5/lesson.md) 53 | - [Lesson 6 - Evaluation](lesson-6/lesson.md) 54 | 55 | ## Community 56 | 57 | Coder is open source, so everyone can help make it better. You can fix bugs, build new features and help make Coder the simplest way for new coders to learn how to create content for the web. To find out more visit the [Google Coder GitHub Page](https://github.com/googlecreativelab/coder/). 58 | 59 | ## Licence 60 | 61 | Unless otherwise specified, everything in this repository is covered by the following licence: 62 | 63 | ![Creative Commons License](http://i.creativecommons.org/l/by-sa/4.0/88x31.png) 64 | 65 | ***Coder HTML & CSS Lessons*** by the [Raspberry Pi Foundation](http://raspberrypi.org) is licenced under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/). 66 | 67 | Based on a work at https://github.com/raspberrypilearning/coder-html-css-lessons 68 | -------------------------------------------------------------------------------- /hardware.yml: -------------------------------------------------------------------------------- 1 | - name: A computer connected to a network 2 | img: 3 | -------------------------------------------------------------------------------- /images/coder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/images/coder.png -------------------------------------------------------------------------------- /images/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/images/login.png -------------------------------------------------------------------------------- /ks2.md: -------------------------------------------------------------------------------- 1 | - Understand computer networks, including the internet; how they can provide multiple services, such as the World Wide Web, and the opportunities they offer for communication and collaboration. 2 | - Select, use and combine a variety of software (including internet services) on a range of digital devices to design and create a range of programs, systems and content. This will accomplish various goals including collecting, analysing, evaluating and presenting data and information. 3 | -------------------------------------------------------------------------------- /ks3.md: -------------------------------------------------------------------------------- 1 | - Understand the hardware and software components that make up computer systems, and how they communicate with one another and with other systems. 2 | - Create, reuse, revise and repurpose digital artefacts for a given audience, with attention to trustworthiness, design and usability. 3 | - Understand a range of ways to use technology safely, respectfully, responsibly and securely, including protecting the students' online identity and privacy. Recognise inappropriate content, contact and conduct, and know how to report concerns. 4 | -------------------------------------------------------------------------------- /learn.md: -------------------------------------------------------------------------------- 1 | Through this scheme of work, students will learn: 2 | 3 | - How to turn a Raspberry Pi into a webserver 4 | - How to create webpages using HTML & CSS, in particular: 5 | - Different ways to display text with HTML 6 | - Adding images and videos 7 | - Adding CSS style 8 | 9 | This resource covers elements from the following strands of the [Raspberry Pi Digital Making Curriculum](https://www.raspberrypi.org/curriculum/): 10 | 11 | - [Design basic 2D and 3D assets](https://www.raspberrypi.org/curriculum/design/creator) 12 | -------------------------------------------------------------------------------- /lesson-1/lesson.md: -------------------------------------------------------------------------------- 1 | #Lesson 1 - Websites & Webservers 2 | 3 | ##Introduction 4 | 5 | Google Coder allows students to create simple, fun and subtly educational web content that can all be made with Coder and Raspberry Pi. It’s free software that turns a Raspberry Pi into a simple, tiny, personal web server and web-based development environment; just what you need for crafting HTML, CSS and Javascript while you’re learning to code. 6 | 7 | Hopefully you’ve already downloaded and installed Coder for Raspberry Pi from the offical Google Coder website. If you haven’t (or aren’t sure what Coder is) you can read about it here: http://goo.gl/coder. 8 | 9 | ## Learning Objectives 10 | 11 | - Know how websites are accessed on the World Wide Web 12 | - Understand the basic functions of a webserver 13 | - Be able to set up and use a Raspberry Pi as a webserver with Google Coder 14 | 15 | ## Learning Outcomes 16 | 17 | ###All students are able to: 18 | 19 | - Know how to plug the components of a Raspberry Pi together 20 | - Access their Coder webserver, and the pages preinstalled on it, with a web browser 21 | - Explain how websites are accessed on the World Wide Web 22 | 23 | ###Most students are able to: 24 | 25 | - Edit some basic HTML code and explain what it does 26 | - Name the functions of a webserver 27 | 28 | ###Some students are able to: 29 | 30 | - Explain the importance of setting a password on a webserver 31 | 32 | ## Lesson Summary 33 | 34 | - An introduction to websites and webservers 35 | - A demonstration of how a Raspberry Pi can be used as a webserver to host websites using Google Coder 36 | - Setting up and connecting a Raspberry Pi with a password 37 | - Starting and editing a Coder app 38 | 39 | ## Starter 40 | Have a demonstration Raspberry Pi already connected and Google Coder software running. Hold up a Raspberry Pi board and ask the students what they think it is. Explain that it’s actually a computer and that in the coming lessons they’re going to do something special with it. Instead of running apps and games other people have created for them, they’re going to learn to create and host websites on it. 41 | 42 | Explain to students the concept of a webserver and how websites are created, stored and accessed on the World Wide Web. 43 | 44 | ## Main Development 45 | 46 | 1. Demonstrate to the class how to connect all the Raspberry Pi components together in the correct order and how to boot it. While they are connecting the components, ask the class to name and describe each one. An alternative demonstration would be to leave out the memory card and attempt to boot the Pi, which will fail. You can then describe the memory card as something that contains instructions to tell the Raspberry Pi how to start. 47 | 48 | 2. Split the students into pairs and issue an an SD card configured for multiple use to each pair. It's recommended that you number the cards and make a note of which group has each card, as they will need to use the same card each lesson in this scheme of work. Allow the students to set up and power up their Raspberry Pi Google Coder webservers using [these student instructions](worksheet.md). 49 | 50 | 3. Once students have connected to their Raspberry Pi Coder server, it will ask them to set a password. This is not necessary, but it could be used as a opportunity to discuss the importance of security on webservers, and why this might be important on the World Wide Web. 51 | 52 | 4. Students should open the **Hello Coder** webpage by clicking on the icon. They should then click on the **edit** button to see the HTML code that makes up the webpage. Students can change some of the writing to see what happens to the page. 53 | 54 | ## Plenary 55 | 56 | Pairs should be invited to demonstrate to the class what they did to the Hello Coder webpage. Following this, a discussion should be held about how the webserver works. 57 | 58 | ## Homework 59 | 60 | Students should be asked to think of their favourite TV programme, game, book or item and write a review of it ready for the next lesson. 61 | 62 | -------------------------------------------------------------------------------- /lesson-1/worksheet.md: -------------------------------------------------------------------------------- 1 | # Student Instructions 2 | 3 | ## Setting up your Raspberry Pi using Google Coder 4 | 5 | The Raspberry Pi is a bare bones computer. It’s not much use on its own. In order to use it as a webserver and create websites on it, we need to connect a number of things to it: 6 | 7 | - An SD card. This card contains the Google Coder that can be loaded onto the Raspberry Pi in order for it to be used to create websites. You need to slide the card into the slot with the metal pins facing in towards the Raspberry Pi. The label should be visible when it is inserted. 8 | - An ethernet cable or wifi adaptor. This will allow you to connect the Raspberry Pi to a local network to host your website projects on. 9 | - A power adaptor. Plug the power adaptor into a socket and then the small USB connector into the Raspberry Pi. When you turn the socket switch on, you should see the Raspberry Pi flash and text should appear on the monitor. 10 | 11 | *Note: A monitor, keyboard and mouse are not necessary, as you will connect to the Raspberry Pi from an internet browser on a different computer on the network.* 12 | 13 | ## Connect to your Raspberry Pi Coder Server 14 | 15 | Now you have connected your Raspberry Pi to the local network you can use a computer or laptop to connect to it. You will see that after you plugged in the power cable some lights came on; this indicates that your Raspberry Pi Coder server is booting up. 16 | 17 | 1. Give it a few minutes to boot, and then in the web browser on your computer type: 18 | 19 | ``` 20 | http://coder.local/ 21 | ``` 22 | Don't forget the `http://` part! 23 | 24 | 2. You might have to enter the Coder number given to you by your teacher instead, for example `http://coder01.local/` or `http://coder02.local/`. 25 | 26 | 3. Once connected, you will see a screen asking you to set up a password to protect your server. Set a password with your partner. *Note: You will need to make sure that you remember your password every lesson, or your work will be lost. You could use the RPi default password `raspberry`.* 27 | 28 | ## Hello Coder 29 | 30 | Once connected to your Coder webserver you can create a new Coder app. On the main Coder page you will see a grid of boxes with names on them. These are projects (also called apps), and there are a few that come pre-installed on Coder. Some of them are simple, like Hello Coder. 31 | 32 | 1. Click on the **hello coder** app. 33 | 34 | 2. Now click on the **edit** button at the top to see the HTML code that makes this webpage. 35 | 36 | 3. Change the test to say something different to hello world! 37 | 38 | 4. Save your changes. 39 | -------------------------------------------------------------------------------- /lesson-2/images/final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-2/images/final.png -------------------------------------------------------------------------------- /lesson-2/images/new-page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-2/images/new-page.png -------------------------------------------------------------------------------- /lesson-2/images/new-project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-2/images/new-project.png -------------------------------------------------------------------------------- /lesson-2/images/project-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-2/images/project-settings.png -------------------------------------------------------------------------------- /lesson-2/images/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-2/images/text.png -------------------------------------------------------------------------------- /lesson-2/lesson.md: -------------------------------------------------------------------------------- 1 | # Lesson 2 - What is HTML? 2 | 3 | ##Introduction 4 | 5 | In this lesson we will be given an opportunity to program a new webpage using HTML; from creating a webpage on Google Coder, to careful syntax placement, to the joy of creating a simple webpage. In particular, we will learn how to use the HTML tags for headings, line breaks and paragraphs. 6 | 7 | ## Learning Objectives 8 | 9 | - Know that websites are made up of a type of computer code called "HTML" 10 | - Identify some HTML tags and what they are used for 11 | - Be able to use HTML tags to create a basic webpage for a recipe 12 | 13 | ## Learning Outcomes 14 | 15 | ###All students are able to: 16 | 17 | - Know that websites are made up of HTML tags 18 | - Create a new webpage on a Google Coder webserver 19 | - Display some text in headings and main body text 20 | 21 | ###Most students are able to: 22 | 23 | - Identify some HTML tags and explain their use 24 | - Display text in multiple ways using HTML tags such as `
` and `

` 25 | 26 | ###Some students are able to: 27 | 28 | - Add horizontal lines to visually break up text on the page using `
` 29 | - Understand that most HTML code uses an opening tag and a closing tag 30 | 31 | 32 | ## Lesson Summary 33 | 34 | - An introduction to some HTML tags 35 | - A demonstration of how to create a new Google Coder webpage on a Raspberry Pi 36 | - Student setup of Coder webservers 37 | - Creation of a webpage using HTML tags 38 | 39 | ## Starter 40 | 41 | Using an example of a live website such as [RaspberryPi.org](http://www.raspberrypi.org) or [bbc.co.uk](http://bbc.co.uk) in a web browser such as Google Chrome, ask students to identify different elements that make up the page: images, text, animations and so on. Next, show the source code of the page using the **view page source** option in Chrome. Explain to students that this is HTML and that it is a type of code used to make websites. Draw on previous learning to explain the tags and ask students if they can guess what some of the tags may do. 42 | 43 | ## Main Development 44 | 45 | 1. Remind the class how to connect their Raspberry Pi equipment together and boot their Google Coder servers, ensuring that students are allocated the correct SD card that they used in the previous lesson. Ensure that they can all log in. 46 | 47 | 2. Next, demonstrate to the students how to create a new page on Google Coder; name it and give it a colour. See [student instructions here](worksheet.md). 48 | 49 | 3. Explain how to add heading text and a description of their item to review, and show them the HTML tag to do this. Give students time to try this and preview what it looks like. 50 | 51 | 4. Next, introduce students to other ways to display text (see the student instructions): breaking lines of text, adding paragraphs of text, using different heading sizes, horizontal lines and so on. 52 | 53 | ## Plenary 54 | 55 | Select students to demonstarte their work so far to the class. Draw out through questioning what tags they used and how they worked. If students have a blog or e-portfolio they should write about what they did in the lesson, ensuring that they answer the following questions: 56 | - What is HTML? 57 | - What do HTML tags look like? 58 | - What HTML tags did you use in the construction of your review page today? 59 | 60 | ## Homework 61 | 62 | Using [Creative Commons Image Search](http://search.creativecommons.org/) students should find or make a note of images they can use on their webpage. 63 | 64 | 65 | -------------------------------------------------------------------------------- /lesson-2/worksheet.md: -------------------------------------------------------------------------------- 1 | # Student Instructions 2 | 3 | ## Setting up your Raspberry Pi using Google Coder 4 | 5 | The Raspberry Pi is a bare bones computer. It’s not much use on its own. In order to use it as a webserver and create websites on it, we need to connect a number of things to it: 6 | 7 | - An SD card. This card contains the Google Coder that can be loaded onto the Raspberry Pi in order for it to be used to create websites. You need to slide the card into the slot with the metal pins facing in towards the Raspberry Pi. The label should be visible when it is inserted. 8 | - An ethernet cable or wifi adaptor. This will allow you to connect the Raspberry Pi to a local network to host your website projects on. 9 | - A power adaptor. Plug the power adaptor into a socket and then the small USB connector into the Raspberry Pi. When you turn the socket switch on, you should see the Raspberry Pi flash and text should appear on the monitor. 10 | 11 | *Note: A monitor, keyboard and mouse are not necessary, as you will connect to the Raspberry Pi from an internet browser on a different computer on the network.* 12 | 13 | ## Connect to your Raspberry Pi Coder Server 14 | 15 | Now you have connected your Raspberry Pi to the local network you can use a computer or laptop to connect to it. You will see that after you plugged in the power cable some lights came on; this indicates that your Raspberry Pi Coder server is booting up. 16 | 17 | 1. Give it a few minutes to boot, and then in the web browser on your computer type: 18 | 19 | ``` 20 | http://coder.local/ 21 | ``` 22 | Don't forget the `http://` part! 23 | 24 | 2. You might have to enter the Coder number given to you by your teacher instead, for example `http://coder01.local/` or `http://coder02.local/`. 25 | 26 | 3. Once connected, you may see a security certificate warning screen; it is OK to click the button to 'proceed anyway'. Then you will see a screen asking you to type a password. Use the password that you set up during the first lesson, for example 'raspberry'. 27 | 28 | 4. Load your project page from the last lesson by clicking on the project icon. 29 | 30 | ## Make a New Coder Webpage 31 | 32 | On the main Coder page you will see a grid of boxes with names on them. These are projects (also called apps); some are webpages and some are games. There are a few that come pre-installed on Coder. Last lesson you looked at the 'Hello Coder' project. 33 | 34 | 1. At the top left of the screen you should see a green box with a plus sign. Click the plus to start creating a new project. 35 | 36 | 2. Give it a name and pick a colour. You are going to make a webpage containing a review, so give it a name to reflect its contents such as "My favourite item". 37 | 38 | ![](images/new-project.png) 39 | 40 | 3. Once you’ve chosen a name and colour, press **Create**. You should go straight into editing your new project. 41 | 42 | 4. When you create a new webpage, you start in the "Code View" of Coder. This contains the building blocks that will make up your website. Click on the icon that looks like an eye in the top right of the screen. This will show you a preview of what your webpage will look like. 43 | 44 | ![](images/new-page.png) 45 | 46 | ## Project Settings 47 | 48 | You can change the colour that you have used for your new project, and even add your name so that you know it is your work. To do this, click on the icon of a cog that represents **settings** next to the **preview** eye icon. Then add your name, and a new colour for your project icon should you wish. 49 | 50 | ![](images/project-settings.png) 51 | 52 | ## Headings & Titles 53 | 54 | All Coder projects start with some code already in them. For example, lines that begin with code with pointed brackets like `` are called tags. 55 | 56 | Tags are the bits of HTML that define the structure and content of a site; they are very important. All tags have an open tag and a close tag. A close tag looks like ``. The slash at the start is what makes a close tag close. All tags need an opening and a closing or else they won’t work. 57 | 58 | 1. Add the information about your favourite item by first finding the `

` tag; this is the tag for a heading. Right now the heading looks like this: 59 | 60 | `

Hello World

` 61 | 62 | 2. Change the text between the tags to the name of your item or TV show/game. 63 | 64 | 3. Save your changes by clicking on the **Save** button at the bottom of the screen and take a look at the preview window. The larger heading text has now changed; that is because you changed the text inside the tag. 65 | 66 | 67 | ## Other Ways to Display Text 68 | 69 | Titles are important, but you will want to have different styles of text on your review webpage. In this section we will look at two other ways to display text. 70 | 71 | 1. You may wish to break a line of text so it goes over more than one line. The following title is a little bit too long: 72 | 73 | `

My Raspberry Pi Review by Miss Philbin

` 74 | 75 | I can use the `
` tag to break it into two lines like this: 76 | 77 | `

My Raspberry Pi Review
by Miss Philbin

` 78 | 79 | 2. Break your heading so that it goes over two lines. Then click on **Save** and see how it looks in the preview window by clicking on the picture of an eye. 80 | 81 | 3. Next, change the paragraph tag beneath the heading that looks like this: 82 | 83 | `

Your html goes here.

` 84 | 85 | Remove the text between the tags and replace it with your introduction text about your favourite item. For example: 86 | 87 | `

The Raspberry Pi is a small computer and is my favourite item.

` 88 | 89 | 4. Now save that and take a look. 90 | 91 | 5. Above your introduction paragraph you can add text to act as a subheading. This could be important text that is not quite as important as the title. 92 | 93 | Add an `

` tag. It’s a heading like the `

` but it won’t be as prominent. The `

` tag should read **Introduction**. 94 | 95 | Your code should look something like this: 96 | 97 | ![](images/text.png) 98 | 99 | 6. Don't forget to save and preview your page to see what it looks like. 100 | 101 | ## Horizontal Line 102 | 103 | It is always nice to underline headings on a page to separate them from the body of text. You can do this with a simple tag! 104 | 105 | Underneath your main heading using the `

` tag type: 106 | 107 | `
` 108 | 109 | HR stands for “Horizontal Rule” and it’s an HTML element designed to divide content on a page. 110 | 111 | ![](images/final.png) 112 | -------------------------------------------------------------------------------- /lesson-3/homework_sheet.md: -------------------------------------------------------------------------------- 1 | ## Homework Sheet - Copyright & Creative Commons 2 | 3 | 1. Explain why using people's images without their permission or knowledge is not okay. 4 | 2. What is creative commons? 5 | 3. Who does creative commons benefit and how? 6 | 4. How many photos on the flickr website currently use creative commons licences? -------------------------------------------------------------------------------- /lesson-3/images/adding-media.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-3/images/adding-media.png -------------------------------------------------------------------------------- /lesson-3/images/video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-3/images/video.png -------------------------------------------------------------------------------- /lesson-3/lesson.md: -------------------------------------------------------------------------------- 1 | # Lesson 3 - Adding Images and Other Media 2 | 3 | ##Introduction 4 | 5 | Modern webpages include more than just text; many people use image search engines, and use images in their work without respecting the licensing of the creative work they are using. 6 | 7 | In this lesson students will be introduced to the concepts of copyright and Creative Commons, and how using other people's work without attributing them could cause legal problems. They will also learn HTML code to add images and videos to their webpages in Google Coder. 8 | 9 | ## Learning Objectives 10 | 11 | - Know how to search for appropriate images online and upload them to Google Coder on the Raspberry Pi 12 | - Understand who owns creative content online and how it can be shared legally 13 | - Be able to write HTML tags to add media to webpages and resize them 14 | 15 | 16 | ## Learning Outcomes 17 | 18 | ###All students are able to: 19 | 20 | - Search for appropriate images online and save them 21 | - Add an image to a webpage using HTML 22 | 23 | ###Most students are able to: 24 | 25 | - Understand that not all images online are free to use 26 | - Add multiple images to a webpage with HTML and be able to resize them 27 | 28 | 29 | ###Some students are able to: 30 | 31 | - Explain the difference between copyright and Creative Commons 32 | - Embed media from other sources using ` 85 |

The Raspberry Pi is a small computer and is my favourite item. This is a video that explains what a Raspberry Pi is and how to set one up for the first time!

86 | ``` 87 | 88 | 89 | ![](images/video.png) 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /lesson-4/files/html-cards.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-4/files/html-cards.pdf -------------------------------------------------------------------------------- /lesson-4/images/CSS-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-4/images/CSS-panel.png -------------------------------------------------------------------------------- /lesson-4/images/Raspi_Colour_R.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-4/images/Raspi_Colour_R.png -------------------------------------------------------------------------------- /lesson-4/images/blurry-text-html.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-4/images/blurry-text-html.png -------------------------------------------------------------------------------- /lesson-4/images/blurry-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-4/images/blurry-text.png -------------------------------------------------------------------------------- /lesson-4/images/fonts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-4/images/fonts.png -------------------------------------------------------------------------------- /lesson-4/lesson.md: -------------------------------------------------------------------------------- 1 | # Lesson 4 - Adding Some Style 2 | 3 | ##Introduction 4 | 5 | CSS, also known as Cascading Style Sheets, is used to style and control the layout of webpages. In this lesson, students will learn what CSS is, what it can be used for and how to write CSS for the first time to apply fonts to their webpage. 6 | 7 | ## Learning Objectives 8 | 9 | - Know what CSS is and how it is used in web design 10 | - Understand how CSS can be used to style a webpage 11 | - Be able to create custom styles for different elements of text on a webpage and apply them 12 | 13 | 14 | ## Learning Outcomes 15 | 16 | ###All students are able to: 17 | 18 | - Know what CSS is and how it affects HTML 19 | - Access the CSS panel on their webpages with Google Coder 20 | - Change the font used for `

` 21 | 22 | ###Most students are able to: 23 | 24 | - Change the fonts for all the types of text they have used on their webpage such as `

` 25 | - Add a size and weight to fonts with CSS 26 | 27 | ###Some students are able to: 28 | 29 | - Apply advanced CSS to make the fonts look more interesting 30 | 31 | 32 | ## Lesson Summary 33 | 34 | - HTML card sort activity 35 | - A teacher-led introduction to CSS 36 | - A demonstration of how to access the CSS panel on Google Coder 37 | - A demonstration on how to change fonts and sizes 38 | - Improving webpages with CSS 39 | 40 | 41 | ## Starter 42 | 43 | Create student groups of 2 or 3 and give each group a set of [HTML cards](files/html-cards.pdf). Students are to match the HTML tag with the correct answer card. After a few minutes, select each group to feedback one card to the rest of the class. 44 | 45 | 46 | ## Main Development 47 | 48 | 1. Remind the class how to connect their Raspberry Pi equipment together and boot their Google Coder servers, ensuring that students are allocated the correct SD card that they used in the previous lesson. Ensure that they can all log in. Students can use the [student instructions](worksheet.md) as a guide to remind them of the steps. 49 | 50 | 2. Demonstrate how to access the CSS panel on a webpage project in Google Coder. Ask students to change the padding to show how CSS affects the webpage they have already created. 51 | 52 | 3. Demonstrate how to change the font family, weight and size for `

`. 53 | 54 | *Note: It may be helpful to have a list of installed fonts avaliable for students displayed on the board.* 55 | 56 | 4. Allow students time to change the fonts for all their text types, following the [student instructions](worksheet.md). 57 | 58 | 5. More advanced use of CSS to make the text look more interesting could be an extension task, for example making some of the heading text look blurry. 59 | 60 | 6. Ask students to save their work, and turn off their Raspberry Pis. 61 | 62 | ## Plenary 63 | 64 | If students have a blog or e-portfolio they should write about what they did in the lesson, ensuring that they answer the following questions: 65 | 66 | - What did you learn in this lesson? 67 | - Did you encounter any difficulties, and if so what were they? 68 | - Set two targets for improving your webpage for next lesson, for example adding colour to headings. 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /lesson-4/worksheet.md: -------------------------------------------------------------------------------- 1 | # Student Instructions - Adding Some Style 2 | 3 | ## Setting up your Raspberry Pi using Google Coder 4 | 5 | The Raspberry Pi is a bare bones computer. It’s not much use on its own. In order to use it as a webserver and create websites on it, we need to connect a number of things to it: 6 | 7 | - An SD card. This card contains the Google Coder that can be loaded onto the Raspberry Pi in order for it to be used to create websites. You need to slide the card into the slot with the metal pins facing in towards the Raspberry Pi. The label should be visible when it is inserted. 8 | - An ethernet cable or wifi adaptor. This will allow you to connect the Raspberry Pi to a local network to host your website projects on. 9 | - A power adaptor. Plug the power adaptor into a socket and then the small USB connector into the Raspberry Pi. When you turn the socket switch on, you should see the Raspberry Pi flash and text should appear on the monitor. 10 | 11 | *Note: A monitor, keyboard and mouse are not necessary, as you will connect to the Raspberry Pi from an internet browser on a different computer on the network.* 12 | 13 | ## Connect to your Raspberry Pi Coder Server 14 | 15 | Now you have connected your Raspberry Pi to the local network you can use a computer or laptop to connect to it. You will see that after you plugged in the power cable some lights came on; this indicates that your Raspberry Pi Coder server is booting up. 16 | 17 | 1. Give it a few minutes to boot, and then in the web browser on your computer type: 18 | 19 | ``` 20 | http://coder.local/ 21 | ``` 22 | Don't forget the `http://` part! 23 | 24 | 2. You might have to enter the Coder number given to you by your teacher instead, for example `http://coder01.local/` or `http://coder02.local/`. 25 | 26 | 3. Once connected, you may see a security certificate warning screen; it is OK to click the button to 'proceed anyway'. Then you will see a screen asking you to type a password. Use the password that you set up during the first lesson, for example 'raspberry'. 27 | 28 | 4. Load your project page from the last lesson by clicking on the project icon. 29 | 30 | ## Adding Style using CSS 31 | 32 | So far you have been using HTML to create your webpage. This has enabled you to add content like text and images to it. By now, you'll be wanting to make it look much cooler with colour and different fonts. 33 | 34 | The text on your website has had the default font applied to it which is a bit boring, but you can change that by clicking on the **CSS panel** icon at the top of the screen. 35 | 36 | ![](images/CSS-panel.png) 37 | 38 | *CSS stands for “Cascading Style Sheets.”* When you click on the panel you will see the following code: 39 | 40 | ```css 41 | .pagecontent { 42 | padding: 24px; 43 | } 44 | ``` 45 | 46 | CSS is what we use to style HTML elements such as the text. Just like HTML tags, it needs to be written a specific way in order to work. 47 | 48 | CSS looks different to the HTML you have used so far in your project. They use curly brackets and the placement of these is very important. 49 | 50 | 51 | 1. Change the number next to padding from **24px** to **300px**. 52 | 53 | 2. Click on **Save** at the bottom of the page. 54 | 55 | 3. Then take a look at the preview. You will see that all the content has shifted. That’s because we increased the padding, or space, between the inside of the box and the text and images. 56 | 57 | CSS styles affect the way things look in the HTML. It’s in this tab that you will make your text look pretty by changing fonts and colours. 58 | 59 | 4. Change the padding size to something more pleasing to look at such as 50. 60 | 61 | ```css 62 | .pagecontent { 63 | padding-left: 50px; 64 | padding-right: 50px; 65 | } 66 | ``` 67 | 68 | ## Get Funky with Fonts 69 | 70 | Font choice is very important when creating digital content like a webpage. You need to consider your audience. Easy to read fonts are better to use if you have text you would like everyone to be able to read. Crazy artistic fonts are useful to make headings and bits of text stand out. Let's begin by making `

` headings feel like a real headline. 71 | 72 | 1. Click on the CSS tab at the top of the screen. 73 | 2. Write 'h1'. The CSS will then change the style of every `h1` tag in your HTML. 74 | 3. Add an open curly bracket after that. 75 | 4. Press enter twice on the keyboard and add a close curly bracket. Your code should now look like this: 76 | 77 | ```css 78 | h1 { 79 | } 80 | ``` 81 | 82 | 5. On the empty line in between the curly brackets, add the property 'font-family' and make its value 'courier, monospace'. This will change the font for `

` to Courier; if Courier isn't on your computer, it will use a default monospace font. 83 | 84 | ```css 85 | h1 { 86 | font-family: courier, monospace; 87 | } 88 | ``` 89 | 90 | 6. Save the code and take a look at it in the preview window. The header should look different now. 91 | 92 | 7. Let’s keep styling the heading by adding the size of the font, the weight of the font (such as bold, italic and so on) and the height of the line of text like this: 93 | 94 | ```css 95 | h1 { 96 | font-family: courier, monospace; 97 | font-size: 50px; 98 | font-weight: bold; 99 | line-height: 2em; 100 | } 101 | ``` 102 | 103 | 8. Save the code and take a look at it in the preview window. The title should be big and bold now, with a little more space around it. 104 | 105 | *Note: 'px' is used to specify size in screen pixels, but 'em' is used to measure things based on the size of the font. '2em' would make the line-height 2 times the size of the font.* 106 | 107 | ![](images/fonts.png) 108 | 109 | 9. You can use any 'font-family' that you like. A good way to find one you like and its name is to look at the fonts in another application, such as Word or Photoshop. 110 | 111 | 10. Change the size and styles of the fonts for `

` and `

` text too! 112 | 113 | 114 | ## Other Fun Things to do with Fonts 115 | 116 | You can use CSS to apply all sorts of fun styles. For example, why not make the text look a little blurry like this... 117 | 118 | 1. In the **CSS panel** type the following code underneath the `.pagecontent` section in curly brackets and above the `h1` section: 119 | 120 | ```css 121 | .blur { 122 | color: transparent; 123 | text-shadow: 0 0 5px rgba(0,0,0,0.5); 124 | } 125 | ``` 126 | 127 | ![](blurry-text.png) 128 | 129 | 2. Click on the **HTML panel** to view the HTML code; underneath `

` type the following line: 130 | 131 | ```html 132 |
133 | ``` 134 | 135 | 3. Remember most HTML tags have an open and a close tag. Adding a new div class adds a new opening tag. Therefore you need to add the closing tag '
'. Place this closing tag above `

Introduction

` like this: 136 | 137 | ![](images/blurry-text-html.png) 138 | 139 | 4. Click on the Save button and preview what your heading font looks like now! You can always remove this effect by deleting the `
` and `
` tags. 140 | -------------------------------------------------------------------------------- /lesson-5/images/background-colour.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-5/images/background-colour.png -------------------------------------------------------------------------------- /lesson-5/images/background-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-5/images/background-image.png -------------------------------------------------------------------------------- /lesson-5/images/colour.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypilearning/coder-html-css-lessons/0422d09df8882f8645e0eef13d0e7614ffe24dcc/lesson-5/images/colour.jpg -------------------------------------------------------------------------------- /lesson-5/lesson.md: -------------------------------------------------------------------------------- 1 | # Lesson 5 - Colour 2 | 3 | ##Introduction 4 | 5 | Applying colour to a webpage is a major part of its design. So far, students have been using the default black text on a white background. In this lesson they will learn how to use CSS to apply colours to different types of text and the background. 6 | 7 | ## Learning Objectives 8 | 9 | - Recall how CSS was used to change the font of types of text 10 | - Understand that colour can be applied to elements of a webpage using CSS 11 | - Be able to apply an appropriate colour scheme using hex colour values 12 | 13 | ## Learning Outcomes 14 | 15 | ###All students are able to: 16 | 17 | - Apply a colour to an element of a webpage using CSS 18 | 19 | 20 | ###Most students are able to: 21 | 22 | - Apply appropriate colours to multiple elements of a webpage with CSS, including text and background, with hex values 23 | 24 | 25 | ###Some students are able to: 26 | 27 | - Apply images to the background as well as colour with CSS 28 | 29 | 30 | 31 | ## Lesson Summary 32 | - Colour Scheme picker activity 33 | - A teacher-led recap of using CSS 34 | - A demonstration of how to access the CSS panel on Google Coder 35 | - A demonstration on how to change colours of fonts and the background 36 | - Improving webpages with CSS 37 | 38 | 39 | ## Starter 40 | 41 | Direct students to the [Colour Scheme Designer Picker](http://colorschemedesigner.com/) Website and give a quick demonstration on how to use it. Explain to students that they will need to select some colours for their webpage. When students are happy with their selections, ask them to note the hex values for each colour they want to use on their webpage. 42 | 43 | ## Main Development 44 | 1. Remind the class how to connect their Raspberry Pi equipment together and boot their Google Coder servers, ensuring that students are allocated the correct SD card that they used in the previous lesson. Ensure that they can all log in. Students can use the [student instructions](worksheet.md) as a guide to remind them of the steps. 45 | 46 | 2. Demonstrate how to access the CSS panel on a webpage project in Google Coder. Select students to recall and explain the steps they took in the last lesson to add fonts to the different text styles. 47 | 48 | 3. Demonstrate how to add colour to `

` using the name of a colour like `color: magenta;`. *Note: the American spelling of colour is important!* Allow students to change the colour of `

` on their webpages using the names of colours. 49 | 50 | 4. Show students that instead of using the names of colours, which can be limited, they can use Hex values instead, like the ones they selected at the start of the lesson. Explain that hex values are codes that help a browser show colour. Following the [student instructions](worksheet.md), allow the class to try adding different colours to their text. 51 | 52 | 5. Demonstrate to students how to change the background colour using CSS and allow them time to try this too: 53 | 54 | ```css 55 | body { 56 | background-color:#b0c4de; 57 | } 58 | ``` 59 | As an extension task, students could replace the background colour with an image following the student instructions. 60 | 61 | ## Plenary 62 | 63 | In the last section of the lesson, ask students to swap seats with a partner and review their website, giving feedback on what they like about the website and targets to improve. 64 | 65 | Finally, ask students to save their work, and turn off their Raspberry Pis. 66 | 67 | 68 | ## Homework 69 | 70 | Students should review a website of their choice by answering the following questions: 71 | 72 | - What is the name of the website? 73 | - Who is the target audience? 74 | - Do you think it is well designed or badly designed, and why? 75 | - Are the colours easy on the eye? 76 | - Is the layout clear and uncluttered? 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /lesson-5/worksheet.md: -------------------------------------------------------------------------------- 1 | # Student Instructions - Colour 2 | 3 | ## Setting up your Raspberry Pi using Google Coder 4 | 5 | The Raspberry Pi is a bare bones computer. It’s not much use on its own. In order to use it as a webserver and create websites on it, we need to connect a number of things to it: 6 | 7 | - An SD card. This card contains the Google Coder that can be loaded onto the Raspberry Pi in order for it to be used to create websites. You need to slide the card into the slot with the metal pins facing in towards the Raspberry Pi. The label should be visible when it is inserted. 8 | - An ethernet cable or wifi adaptor. This will allow you to connect the Raspberry Pi to a local network to host your website projects on. 9 | - A power adaptor. Plug the power adaptor into a socket and then the small USB connector into the Raspberry Pi. When you turn the socket switch on, you should see the Raspberry Pi flash and text should appear on the monitor. 10 | 11 | *Note: A monitor, keyboard and mouse are not necessary, as you will connect to the Raspberry Pi from an internet browser on a different computer on the network.* 12 | 13 | ## Connect to your Raspberry Pi Coder Server 14 | 15 | Now you have connected your Raspberry Pi to the local network you can use a computer or laptop to connect to it. You will see that after you plugged in the power cable some lights came on; this indicates that your Raspberry Pi Coder server is booting up. 16 | 17 | 1. Give it a few minutes to boot, and then in the web browser on your computer type: 18 | 19 | ``` 20 | http://coder.local/ 21 | ``` 22 | Don't forget the `http://` part! 23 | 24 | 2. You might have to enter the Coder number given to you by your teacher instead, for example `http://coder01.local/` or `http://coder02.local/`. 25 | 26 | 3. Once connected, you may see a security certificate warning screen; it is OK to click the button to 'proceed anyway'. Then you will see a screen asking you to type a password. Use the password that you set up during the first lesson, for example 'raspberry'. 27 | 28 | 4. Load your project page from the last lesson by clicking on the project icon. 29 | 30 | ## A Splash of Colour 31 | 32 | In the last lesson you started to add some style to your webpage using CSS, concentrating on styles of fonts and changing their attributes like size and weight. This lesson will build on the CSS you have already learned to change the colours of different elements of your webpage. 33 | 34 | Sometimes it can be difficult to know what colours to use that complement each other. You can use a [colour scheme designer like this](http://colorschemedesigner.com/) to help. Find some colours that you would like to use for your text. 35 | 36 | ![](images/colour.jpg) 37 | 38 | ## Adding Colours in CSS 39 | 40 | All the text used on your webpage is a default black colour. You can give each type of text a colour in the **CSS panel**. 41 | 42 | 1. Click on the CSS tab at the top of the screen. 43 | 2. Navigate to the part of the code for **h1**. 44 | 3. Add the following line of code `color: magenta;` underneath the font settings before the curly bracket like this: 45 | 46 | ```css 47 | h1 { 48 | font-family: courier, monospace; 49 | font-size: 40px; 50 | font-weight: bold; 51 | line-height: 2em; 52 | color: magenta; 53 | } 54 | ``` 55 | *Note: You will need to use the American spelling of 'colour' in your code for it to work!* 56 | 57 | 4. Now save your changes and preview what they look like using the preview button. Was it the colour that you were expecting to see? What happens if you replace `magenta` with `blue`? 58 | 59 | As you can see, you can use colour names to apply colours in CSS. These are generic values, though, and aren’t always exactly the colour you want. If you want a little more control over colour then you’ll need to use hex values. 60 | 61 | Hex values are codes that help a browser show colour. They look like this: `#FF0000`; that’s the hex value for red. Hex codes are six digits long, and contain only the numbers 0-9 and the letters A-F. 62 | 63 | Here are some other example hex values: 64 | 65 | ```css 66 | #00FF00 - only green 67 | #0000FF - only blue 68 | #C0392B - softer red 69 | #16A085 - softer green 70 | #3498D8 - softer blue 71 | #D977D4 - pink 72 | #F1C40F - yellow 73 | #F39C12 - orange 74 | #FFFFFF - white 75 | #000000 - black 76 | #999999 - grey 77 | ``` 78 | 79 | 5. Change the colours of all of your text styles, using hex codes from the colour scheme designer webpage you used at the start of the lesson. Hover your mouse over a colour you like and it will give you the hex value for it. 80 | 81 | ## Changing the Background Colour 82 | 83 | Text is not the only element of the webpage that you may wish to choose a colour for. Currently the background is a default white colour. Let's change that by adding a style. 84 | 85 | 1. Make sure that you have the **CSS panel** selected and navigate to the end of your code. 86 | 2. Add the following: 87 | 88 | ```css 89 | body { 90 | background-color:#b0c4de; 91 | } 92 | ``` 93 | 94 | 3. Click on **save** and then click on the preview button to see what happens. 95 | 4. If you do not like the colour, then you can change it by changing the hex value. 96 | 5. You don't need to end there; you can also change the background colour of your text. Navigate to **h1** and add the line `background-color:#6495ed;` after the text colour and before the closing curly bracket like this: 97 | 98 | ![](images/background-colour.png) 99 | 100 | ## Background Image 101 | 102 | Instead of using one colour for the background, you could use an image instead. To do this you will need to find an image that you want to use, save it somewhere on your computer and then upload it to Coder using the Media folder. You did this before in lesson 3. 103 | 104 | 1. Click on the **Media** button that looks like a picture of a folder. 105 | 2. Click on the `“+”` button. You should get a prompt to upload a file. 106 | 3. Select an image of your choice from a location on your computer. 107 | 4. Once the image is uploaded, you should see its name and the date it was uploaded appear. 108 | 109 | 5. Click on the **CSS panel** and replace `background-color` with `background-image:url("image.jpg")` like this: 110 | 111 | ```css 112 | body { 113 | background-image:url(""); 114 | } 115 | ``` 116 | 117 | 6. To add the location of the image, click between `(" ")`, then with the media folder open click on **paste to code** and the URL of the image will be added. 118 | 119 | 7. Save your work so far and then see if it has worked by clicking on the preview window. You should end up with code that looks something like this: 120 | 121 | ```css 122 | body { 123 | background-image:url("/static/apps/raspberry_pi/media/Raspi_Colour_R.png"); 124 | } 125 | ``` 126 | 127 | ![](images/background-image.png) 128 | -------------------------------------------------------------------------------- /lesson-6/lesson.md: -------------------------------------------------------------------------------- 1 | # Lesson 6 - Feedback & Evaluation 2 | 3 | ##Introduction 4 | 5 | In this lesson, students will reflect on their webpage design and that of their peers for a given audience, with attention to trustworthiness, design and usability. This is an important part of creating any digital artefact in computing and it can be overlooked. 6 | 7 | ## Learning Objectives 8 | 9 | - Understand what makes a good webpage design 10 | - Be able to apply feedback from others to their webpage design in order to improve it 11 | - Evaluate a webpage design with given criteria 12 | 13 | ## Learning Outcomes 14 | 15 | ###All students are able to: 16 | 17 | - Explain their likes and dislikes about a webpage design 18 | - Set some criteria to be used by others to evaluate their webpage 19 | 20 | ###Most students are able to: 21 | 22 | - Provide relevant feedback to their peers on webpage design 23 | 24 | 25 | ###Some students are able to: 26 | 27 | - Explain the good and bad points about their webpage design, with attention to trustworthiness, design and usability 28 | 29 | 30 | ## Lesson Summary 31 | - Class discussion on reviewing website design 32 | - Setup of Raspberry Pi Google Coder webservers 33 | - Peer assessment against criteria 34 | - Self-evaluation against criteria 35 | - Improving webpages based on feedback and evaluation 36 | 37 | 38 | ## Starter 39 | 40 | For homework in the previous lesson, students were asked to review a website of their choice by answering the following questions: 41 | 42 | - What is the name of the website? 43 | - Who is the target audience? 44 | - Do you think it is well designed or badly designed, and why? 45 | - Are the colours easy on the eye? 46 | - Is the layout clear and uncluttered? 47 | 48 | Select students to feedback their reviews to the rest of the class. Draw out from these reviews evaluation criteria that students identified as being important, and display them on the board. Discuss what makes a good webpage design. 49 | 50 | ## Main Development 51 | 52 | 1. Ask students to connect their Raspberry Pi equipment together and boot their Google Coder servers, then log in and open their webpages that they have been working on. 53 | 54 | 2. Next ask students to swap seats with a partner. Using the critera generated at the start of the lesson, students should review their partner's webpage, giving relevant helpful suggestions for improvement. Afterwards, students should return to their seats, read the feedback carefully and make one of the suggested improvements to their webpage. A note of the improvement could be made on the student's blog or e-portfolio if they have one. 55 | 56 | 3. Using the same criteria, students should then self-evaluate their webpage and make any impovements that they see fit. A note of the improvements could be added to a blog or e-portfolio to record the changes. 57 | 58 | ## Plenary 59 | 60 | Select students to explain the journey their website design took during this lesson: 61 | - What did the webpage look like at the start of the lesson? 62 | - What improvements were suggested by others? 63 | - What changed as a result of the feedback? 64 | - If they were to start the project again, what would they do differently? 65 | 66 | If students have access to a blog or e-portfolio they could answer these questions in writing, completing them for homework. 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /meta.yml: -------------------------------------------------------------------------------- 1 | title: Google Coder - HTML & CSS Scheme of Work 2 | os: coder 3 | category: teach 4 | lessons: 5 | 1: Websites & Webservers 6 | 2: What is HTML? 7 | 3: Adding Images and Other Media 8 | 4: Adding Style with CSS 9 | 5: Colour with CSS 10 | 6: Evaluation 11 | -------------------------------------------------------------------------------- /overview.md: -------------------------------------------------------------------------------- 1 | Google Coder is a free, open source project that turns a Raspberry Pi into a simple platform that educators and parents can use to teach the basics of building for the web. New coders can craft small projects in HTML, CSS and Javascript, right from the web browser. 2 | 3 | This scheme of work will introduce students to the infrastructure of website development, in particular the concept of web pages (HTML & CSS) and web servers. It is specifically targeted towards KS2/KS3 Computing. This has been developed in harmony with the new Computing curriculum in the UK and is based on the Google Coder Project - The Perfect Recipe. 4 | -------------------------------------------------------------------------------- /software.md: -------------------------------------------------------------------------------- 1 | # Software installation 2 | 3 | ## Google Coder 4 | In order to access these lessons all SD cards need to be configured to use the [Google Coder software](http://googlecreativelab.github.io/coder/). 5 | 6 | ## Multiple Google Coder Setup 7 | As there will be multiple Raspberry Pis acting as servers some setup is required in configuring them. See [multiple coder devices setup guide](https://github.com/googlecreativelab/coder/wiki/Using-Multiple-Coder-Devices-(Lab-Setup)). 8 | -------------------------------------------------------------------------------- /software.yml: -------------------------------------------------------------------------------- 1 | - Google Coder 2 | --------------------------------------------------------------------------------