Gather Workshops Logo

Web Development Taster

Building Websites with HTML & CSS


Follow along at:

tiny.cc/webtaster

Why Code?

  • Valuable skill in every industry
  • Not about being a programmer
  • Opportunity for growth
  • Structured thinking
  • Academic tech pathway

Gather Workshops Logo

What Lies Beneath

The bones of a web page

A web page is made of three main languages

Venn diagram of HTML, CSS and JS all overlapping

HTML is the markup language

Screenshot of Google with only HTML enabled

CSS is the style sheet language

Screenshot of Google with both HTML and CSS enabled

JavaScript is the programming language

Screenshot of Google with all of HTML, CSS, JS enabled

Workshop Mission:

HTML & CSS

Gather Workshops Logo

Neocities

Getting online fast

Why Neocities?

Custom URLs
Online editor
Funky design
Open Source

And it's free!

Create a Site

Neocities Home Page

Visit Neocities.org and type in the name of your website.

Site Details

Neocities Home Page

Fill in the additional information.

You can skip the "tags" section!

Dashboard

Neocities Dashboard

Fill in the additional information.

You can skip the "tags" section!

Note:

Gather Workshops Logo

HTML Basics

Marking up your content

Headings

Add <h1> and </h1> tags to make the Alpacas heading big and bold.

<h1>Alpacas</h1>

<h1> says "start the heading here"

</h1> says "end the heading here"

Subheadings

Now use <h2> tags to make Alpaca Hair and Habitat big.

<h2>Alpaca Hair</h2>

h1 is the biggest heading
h2 is the second biggest heading
h3 is the third biggest heading

h6 is the smallest heading

Paragraphs

Now use <p> tags to split up your paragraphs.

<p>
An alpaca is a domesticated species of 
South American camelid. It resembles a 
small llama in appearance.
</p>

Put a <p> before each paragraph,
and a </p> after each paragraph.

Image Tags

Add an img tag to the very bottom of your code:

<img src="#" height="100">

src stands for "source"
Replace the # with a link to an image online.

height is the height of the image
This is optional, it is the height in pixels.

Image Source

Find an image online, and copy the link to it.

Replace the # as the src value, using paste:

<img src="http://place.com/photo.jpg" height="100">

Find and add at least 2 more images.

Gather Workshops Logo

CSS Basics

Prettifying your page

Background

Let's start by adding a background image to your site.

html {
    background-color: black;
    background-image: url('http://tiny.cc/swirls');
}

Got it working?

Now choose a pattern of your own from Subtle Patterns.

Styling Paragraphs

p {
    color: red;
    font-size: 14px;
    line-height: 150%;
}

Centered Paragraphs

p {
    color: red;
    font-size: 14px;
    line-height: 150%;

    width: 700px;
    margin: 0 auto;
}

Defining Classes

.important {
    color: green;
    font-size: 26px;
    font-weight: bold;
}

Applying Classes

<p class="important">
    I love bunny rabbits!
</p>

Gather Workshops Logo

Embedding YouTube Videos

Video chaos!

Videos

YouTube Embed Code

Find a YouTube video you like

Click "Share", then click "Embed"

Copy the code, and use it in your site!

Centered Video

.centered-video {
    margin: 0 auto;
}

 

<iframe class="centered-video" ... >

Gather Workshops Logo

Congratulations!

You're officially a web developer!

 

Tanya Gray
@tanya

tanya@gathergather.co.nz

Loading...