In this hands-on tutorial you'll create your own digital postcard. Think of it like a digital invite, telling your friends about the opportunties for developing digital skills.
You'll be introduced to the main languages of the web: HTML, CSS, and JavaScript. Once you've created your own remix of the digital postcard, you'll be able to share it with friends and family online.
Here's an example:
CodePen is a tool that allows you to write code in your web browser. You can use it write and edit HTML, CSS, and JavaScript code. Any changes you make will automatically update on the page.
CodePen encourages forking other peoples code. This means taking a copy of someone else's code so you can make you own changes and experiment with it. It’s a great way to play around with code created by other developers.
Let's fork a copy of the example digital postcard.
Now you'll be able to play around with the code. If you make a mess and want to start fresh template, just go back and fork another copy.
HTML stands for HyperText Markup Language. It's the way we describe the structure and content of a page.
Get remixing the HTML. Try making these changes:
CSS are Cascading Style Sheets. These describe the way a page looks. If you change the CSS code it will change the design and layout of the page.
Now remix the CSS code. Try making these changes:
border-radius: 15px;
)JavaScript is the programming language used by all web browers. We can write code that makes our page interactive and dynamic.
Now remix the JavaScript code. Try making these changes:
/*
from line 6, and the */
from line 11fadeIn()
. How does changing the number change the result?This JavaScript makes use of a code library called jQuery. It's one of the most popular free JavaScript libraries, over 95% of all websites use it.
Learning more about JavaScript, and web libraries like jQuery are a great next step. Try this interactive walkthrough of the fundamentals of jQuery, or this tutorial video explaining jQuery.
You can use web technology to create interesting art. Try creating web animations using Paper.js, or explore the Processing.js library for processing and visualising data from the web
Building games for the web is easier than ever before. Try Making A Goblin Game with HTML5, or Play My Code allows you to see the code behind HTML5 games other people have made.