Site Setup

Time to build your own website!

Page Layout Design

Image of website with header, nav and content area

This is what our page layout will look like

Using a Layout

Index page will be used as a template for images page and videos page

We can copy our layout to make more pages

CloudCannon lets you edit and preview your website

Cloud Cannon lets us edit our code and preview our site

Create a New Project

Create a new project

In CloudCannon, click “Create Site” and make a project

Site Template

We will create images, index and style in our project folder

Template Files

  • Folder Icon
    images
    All your images go in this folder.
  • HTML File Icon
    index.html
    HTML code for your home page.
  • CSS File Icon
    style.css
    CSS code for your whole website.

Create Index Page

Create a new file

Create index.html in your dashboard

Index Page Starter Code

<!DOCTYPE html>
<html>

    <!-- head only used by the browser -->
    <head>
        <title>My Page Title</title>
        <link rel="stylesheet" href="style.css">
    </head>

    <!-- body contains the visible page content -->
    <body>
        <!-- My HTML Code Goes Here-->
    </body>

</html>

Copy this HTML code into your index.html

HTML Head

<!DOCTYPE html>
<html>

    <!-- head only used by the browser -->
    <head>
        <title>My Page Title</title>
        <link rel="stylesheet" href="style.css">
    </head>

    <!-- body contains the visible page content -->
    <body>
        <!-- My HTML Code Goes Here-->
    </body>

</html>

The head contains a browser tab title and a CSS file link

HTML Body

<!DOCTYPE html>
<html>

    <!-- head only used by the browser -->
    <head>
        <title>My Page Title</title>
        <link rel="stylesheet" href="style.css">
    </head>

    <!-- body contains the visible page content -->
    <body>
        <!-- My HTML Code Goes Here-->
    </body>

</html>

All of our page content HTML goes between the body tags

Create Stylesheet

New CSS File

Create style.css in your dashboard

Choose a Background Type

  • Ravens Tile
    Tiled
    A smaller image which repeats
    to fill the whole page.
  • Full-Screen
    Full-screen
    A large image which stretches
    to fill the whole page.

Right-click an image and “Save Image As…“

Upload Background Image

Upload the background image to CloudCannon

Move Background to Images Folder

Use the image options to “Move to new folder”

Tiled Background

If you want a repeating background, use this code.

Add to your style.css:

html {
    background-image: url('images/ravens-tile.gif');
}

Make sure to choose an image which tiles nicely!

Full-Screen Background

If you’d like a full-screen background, use this code.

Add to your style.css:

html {
    background-image: url('images/tree-cover.jpg');
    background-size: cover;
    background-attachment: fixed;
}

Make sure to choose a nice large image!

Background Ideas

Take a few minutes to make your background
look how you want it.

Thumbs Up!

Site Setup: Complete!

Now let’s add some more sections to our page…

Take me to the next chapter!

Loading...