Find a course

Module 5: Finish and PublishLesson 11 of 1112 min

Publish Your Site Safely

Put your site online for free with static hosting, understand domains and HTTPS, and keep your personal information private while sharing your work.

Step 1 of 12Learn

Going live

Right now your site exists only on your computer. The address in your browser starts with file:///, which means nobody else can see it. To share it, the files need to sit on a server that's always connected to the internet. That service is called hosting.

Because your site is static (plain HTML, CSS, JavaScript and images), you can host it for free. Several well-known services offer free static hosting, including GitHub Pages, Netlify and Cloudflare Pages. The general process is similar everywhere:

  1. Create a free account. Check the service's minimum age in its terms; many require users to be at least 13, and some ask for a parent's permission.
  2. Create a new site or project and upload your project folder, either by dragging it into the browser or by connecting a Git repository.
  3. The service gives you a free address, often something like yourname.github.io or your-site.netlify.app.
  4. Open the address on your phone to confirm it works, then share it.

To update the site, you upload the changed files again (or push them with Git), and the live version updates within a minute or so. Remember that index.html is what visitors see when they open your site's main address, so it must sit at the top level of the uploaded folder.

Step 2 of 12Practice · Put in order

Put the steps for publishing a static site in order.

Drag the items, or use the arrow buttons, to put them in order.

  1. Open the free address the service gives you and test it
  2. Upload the project folder with index.html at the top level
  3. Share the link
  4. Create an account on a static hosting service
  5. Finish and test the site on your own computer

Step 3 of 12Diagram

Publishing a static site

Publishing a static siteProcess diagram: Files on your computer → Upload to a free host → Get a public address → Test on your phone → Share the link.Files on yourcomputerUpload to a freehostGet a public addressTest on your phoneShare the link

Tap a shape with to see more.

Files on your computer

Address starts with file:/// so only you can see it.

Upload to a free host

For example GitHub Pages, Netlify or Cloudflare Pages.

Get a public address

Such as yourname.github.io.

Test on your phone
Share the link

Step 4 of 12Learn

Domains and HTTPS

The free address works perfectly, but some people want a custom domain like avachen.com. Domains are rented, usually by the year, from companies called registrars. Prices vary a lot by ending (.com, .dev, .art and so on), and the first year is often discounted while renewals cost more. You'll also need an adult to handle payment if you're under 18. A custom domain is a nice extra, never a requirement.

When you connect a domain, you change its DNS settings to point at your hosting service, the same DNS you met in the first lesson. It can take from a few minutes to a day for the change to spread across the internet.

Whatever address you use, make sure the site loads with HTTPS. The S stands for secure: the connection is encrypted, so nobody on the same Wi-Fi network can read or tamper with what's sent. Modern hosting services provide HTTPS certificates automatically and for free. Browsers label plain HTTP sites as "Not secure," which makes visitors trust them less, and search engines prefer HTTPS sites too.

Step 5 of 12Diagram

How a custom domain gets connected

How a custom domain gets connectedProcess diagram: Rent from a registrar → Point DNS at your host → Host sets up HTTPS → Visitors type your name.Rent from aregistrarPoint DNS atyour hostHost sets upHTTPSVisitors typeyour name

Tap a shape with to see more.

Rent from a registrar

Usually paid yearly.

Point DNS at your host

Add the records your host tells you to.

Host sets up HTTPS

A free certificate gives the lock icon.

Visitors type your name

Step 6 of 12Practice · Match the pairs

Match each term to its meaning.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Hosting
  2. Registrar
  3. DNS settings
  4. HTTPS
  5. file:///

Step 7 of 12Learn

Share your work, not your life

A public website can be seen by anyone on Earth, including people you'd never invite into your life. It can also be copied and archived, so things you delete may not truly disappear. Before you publish, run through what's on every page.

Leave out:

  • Your full name together with your school, town or neighborhood.
  • Your home address, phone number and daily schedule ("I'm at the skate park every Tuesday at 4").
  • Photos that show your house number, school uniform logo, or location details like street signs.
  • Personal email addresses. If you want a contact option, a separate email account just for the site is safer.

Fine to include: your first name or a nickname, your projects, your skills, what you're learning and what you're proud of.

Also check the files themselves. Photos taken with phones can contain hidden metadata, including the exact GPS location where they were taken. Many phones let you turn off location for the camera, and some image tools strip this data when you resize or export a photo.

Finally, talk to a parent or guardian before publishing. Not because you can't be trusted, but because a second pair of eyes catches the detail you didn't notice.

Step 8 of 12Practice · Sort into groups

Sort these items for a public teen portfolio site.

Tap an item, then tap its group (or drag it there).

Step 9 of 12Compare

Share this, not that

AspectFine to shareKeep off the site
NameFirst name or a nicknameFull name plus school and town
PhotosYour projects and artworkPhotos showing your home, school uniform or street
ContactA contact form or school-approved emailPhone number, home address
About youSkills and interestsDaily schedule, exact birthday

Step 10 of 12Note

Step 11 of 12Practice · What would you do?

What would you do?

Ethan wants to add a contact option to his published portfolio. Which approach best balances being reachable with staying safe?

Step 12 of 12Practice · True or false

Deleting a photo from your website guarantees that nobody can ever see it again.