Getting started

All communications will happen via Ed on Moodle.

Tools

For this exercise we will be using a web browser and a text editor with syntax highlighting, for example Chrome and Atom. Here you can find some help with the installation.

You might also find the SVG editor Inkscape useful for inspecting and experimenting with SVG.

Website

The goal of this course is to create an interactive visulization. But in order to show it, we need to put it on a website - today we will practice building and styling the website.

We will use exercise/index.html as our starting point. Open it in your browser to see the site.

The site source consists of the HTML index.html which is our content and of the stylesheet style.css which controls the appearance of the site. Please look at the comments in style.css for more details.

Now practice CSS by customizing the website according to your preferred style.

Alternatively, you may decide to use a framework like Bootstrap to build your site.

Below you can see the result of my edits. Your result can look similar or completely different based on your tastes.

SVG plot

SVG is a vector-graphics format, which means that instead of storing pixel values, it consists of objects to draw, such as circles, lines, other shapes and text.

In this course we will use SVG to draw our visualization. To start, let’s consider the plot placed on the example site, which is also an SVG image.

This is the reference end result of the edits, but like with the website, you can choose the style that fits your preference.

Extending the site

Create the sub-pages description.html, data.html (about your dataset) and team.html (about your team) by copying index.html. Later we will have more to put there but right now you can fill it with placeholder text.

Practice CSS and HTML in an interactive game

CSS selectors determine which elements the style is applied to. They help separating content from style and prevent repetition.