Publish your project
Go through the checklist for the Logo creator (or your own site), publish it on GitHub Pages or Netlify and send the address to a teacher or a friend. Ask them to open the site on a phone and tell you what is not clear.
Nobody else sees a site that works only on your computer. A static site – HTML, CSS, JavaScript and images, like the Logo creator – can be published for free in a few minutes. This lesson covers the check before publishing, three ways of publishing and connecting your own domain.
| Check | How |
|---|---|
the home page is called index.html | the server shows index.html when only the site's address is opened – rename home.html and change the links to it |
| all paths are relative and have the correct upper/lower case | images/logo1.png, not C:\... and not Images/Logo1.PNG |
every page has a title and a meta description | look at the head of every page |
all images have alt and are not too large | photos up to ~300 KB; shrink them, e.g. with the Squoosh tool |
| the HTML has no errors | W3C validator – upload the file and fix the reported errors |
| it works on a phone | F12 → device mode; check the menu and the forms |
| the site icon (favicon) | <link rel="icon" href="images/favicon.png"> – e.g. your logo at 64×64 |
| no personal data | do not publish an address, a phone number or photos of others without permission |
GitHub Pages publishes a site directly from a GitHub repository. Along with it you also get the history of all changes (Git).
logo-creator → Public → Create.main, folder / (root) → Save.https://username.github.io/logo-creator/.Later changes: Upload files again (files with the same name are replaced), or work with Git from VS Code (Source Control).
| Service | How | Note |
|---|---|---|
| Netlify Drop | drag the whole site folder onto the page → you get an address right away | the fastest; for a permanent site create a free account |
| Render | New → Static Site → connect a GitHub repository | every change on GitHub is published by itself; this site also runs on Render |
| a school server / hosting | the files are transferred with an FTP program (e.g. FileZilla) | an older way, still common |
All these services for static sites are free and automatically include HTTPS (the lesson Security).
An address like name.github.io or name.netlify.app is free. For an address like logocreator.com the domain is rented from a registry (about 10–20 € a year), and then a record that points to the service is added to the domain's DNS:
| Record | Example | For |
|---|---|---|
CNAME | www → username.github.io | the www subdomain |
A | @ → the IP addresses the service gives | the main domain without www |
How DNS works is explained in the lesson How the internet works. Every service states exactly in its settings (Custom domain) which records need to be added.
| You want… | The next step |
|---|---|
| users to have accounts and save logos | a backend and a database: the Logo creator Django project (Python) or ASP.NET Core |
| a form that really sends messages | a backend or a ready-made form service |
| nicer and faster frontend development | libraries like React or Vue, after you know JavaScript well |
| people to find the site on Google | a good title, description, headings and text; Google Search Console |
Congratulations – you have finished the HTML, CSS and JavaScript course! You have built and published a real website, and that is what every web programmer does.
Each task has an example, a hint and a solution. The solutions have been checked in the browser.
Go through the checklist for the Logo creator (or your own site), publish it on GitHub Pages or Netlify and send the address to a teacher or a friend. Ask them to open the site on a phone and tell you what is not clear.
.../logo-creator/), paths that start with / do not work – use relative paths.1. What should the home page of a site be called?
2. Why does an image work on Windows, but not after publishing?
3. Which DNS record connects the www subdomain with a github.io address?