Coding Lesson

← All lessons

Your final website

Save and publish

Lesson 18 of 18 · About 35 minutes

Your goal: Understand how a local page becomes a live website.

Learn

A saved HTML file and a public website are different things. You will first keep a reliable local copy, then, if you have suitable hosting, upload the project to a practice folder and test its public address. You can complete the local stage without purchasing hosting.

Walkthrough: why the code works

  1. Download and check the finished project

    Use your completed page from lesson 17, not the generic starter. Download its HTML and open it locally. Check the text, links and interaction. Keep this working copy as a backup. A file: address points to a file on your own device; sending that address does not publish the page.

  2. Collect the files the page depends on

    The HTML download includes CSS and JavaScript written inside the document. It does not bundle linked images or separate files. Put local dependencies in a project folder and preserve the paths used in the HTML. Upload website files only, leaving private notes, credentials and backup archives outside that folder.

    practice/
      index.html
      images/
        plant.jpg
    
    <!-- Inside index.html, if using this image: -->
    <img src="images/plant.jpg" alt="Describe your actual plant picture">
  3. Understand what hosting supplies

    Hosting stores and serves the files; a domain is an address pointing visitors to a website. Some providers supply a temporary address. You need a plan that accepts your HTML files, plus the correct remote folder and HTTPS address. A Playcode123 account is not required. Follow the FileZilla guide linked below for the detailed upload workflow.

  4. Upload into a separate practice folder

    Use your provider’s file manager or supported encrypted transfer method, such as SFTP or FTPS. Obtain the actual connection details from the provider. Upload to a new practice folder rather than replacing an existing homepage. The folder’s public address depends on the hosting configuration; confirm that mapping instead of guessing.

  5. Test the public copy independently

    Open its HTTPS address in a fresh browser tab. Check every image, link and button again. A local success does not prove that the upload is complete: server filenames may be case-sensitive. Correct a small text error locally, upload the changed file, and refresh the public page to practise the update cycle. Keep the final local backup.

Expected results

  • You have a downloaded local copy that opens and passes the tests from lesson 17.

  • If you publish, the HTTPS address loads the intended page and its dependencies from the practice folder.

  • A later local edit appears publicly only after you upload the changed file and refresh.

Common mistakes and how to fix them

  • The public page has no image or styling: Check that you uploaded the dependency files and preserved their paths and capitalisation. A Windows computer path cannot point to an uploaded image.

  • The address opens the wrong site or a missing page: Confirm the website root and practice-folder mapping with the hosting provider. Do not move files between unrelated sites by trial and error.

  • The old page remains after uploading: Verify the remote folder and filename first, then refresh or check a fresh tab. Make sure you uploaded the edited copy rather than a backup.

  • There is no hosting account yet: Finish with the tested local copy. Publishing is optional for this stage; return to the upload guide when suitable hosting is available.

View starter code
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>My hobby page</title>
    <style></style>
  </head>

  <body>
    <h1>My hobby</h1>
    <p>I enjoy learning something new.</p>
  </body>
</html>

Your challenge

Download your finished project. Open it locally and check it. If you have hosting, upload to a new practice folder, then open its public URL and test again.

Keep developing your hobby page: Download HTML before leaving the sandbox, then choose Open HTML file when returning to your project. Load saved draft restores only this lesson’s draft in this browser.

Practise in the sandbox
Show a hint

Use your hosting provider’s upload instructions. Keep filenames and relative paths consistent. Do not overwrite an existing homepage just to practise.

Show a sample answer

Try the challenge first. This is one possible answer or a snippet to adapt.

Example structure: practice/index.html and practice/photo.jpg. Upload both, open your-domain.example/practice/, and test links, images and buttons again.

Put your finished page online

Follow the illustrated FileZilla upload guide: prepare your files, find the correct hosting folder, upload into a practice folder, and test your public address.

No hosting yet? You can finish this lesson with a working local copy. The guide explains what hosting provides and which details to obtain before uploading.

Check your work

You have a working local copy. If published, its public URL loads the page and its assets correctly.

Completion is your own check, not an automatic grade.