Organise and publish your first website

Beginner  Nov 3, 2026

Folder structure, file names and uploading to a hosting account.

Organise and publish your first website
The steps of this tutorial at a glance.
The steps of this tutorial at a glance.

Folder structure

mysite/
  index.html
  about.html
  css/style.css
  js/app.js
  images/logo.png

index.html is the page shown when someone opens the folder's address.

Folder structure
Folder structure

File name rules

  • Lowercase letters, numbers and hyphens: about-us.html.
  • No spaces and no special characters.
  • Linux servers are case-sensitive: Logo.png and logo.png are different files. Many "works on my computer, broken online" problems are just this.
The main points of this section.
The main points of this section.

Relative paths

<link rel="stylesheet" href="css/style.css">
<img src="images/logo.png" alt="Logo">
How the code in this section fits into the page.
How the code in this section fits into the page.

Upload

1. Get your hosting login from your provider (host, user name, password).
2. Use the host's file manager, or an FTP/SFTP program, and prefer SFTP when offered.
3. Upload the contents of your folder into the public_html folder (some hosts use a different name).
4. Open your domain and test every page and link.

Upload
Upload

After upload

  • Check on your phone.
  • Enable HTTPS (free certificates are usually one click in the control panel).
  • Keep a backup of the original files on your computer.
The main points of this section.
The main points of this section.

More tutorials