Protected Learning Content

AICPE Gurukul content is created for learning purposes. Printing, copying and unauthorized reuse are restricted.

AICPE Learning Hub HTML with CSS
Chapter 27
HTML CSS Website Publishing
Chapter 27 | Website Launch

HTML CSS Website Publishing

After creating a website, the next step is to publish it online. In this chapter, you will learn domain, hosting, cPanel upload, public_html, testing and launch checklist in a beginner-friendly way.

Domain

The website address users type in browser.

Hosting

The online space where website files are stored.

public_html

Main folder where public website files are uploaded.

Testing

Check links, images, mobile view and page speed.

Publishing Meaning

What Does Website Publishing Mean?

Publishing means making your website available on the internet for visitors.

1 Simple Meaning

When you create HTML and CSS files on your computer, only you can view them locally. To make the website visible to everyone, you upload those files to a web hosting server and connect them with a domain name.

Definition: Website publishing is the process of uploading website files to a hosting server so users can access the website through a domain.
Professional Tip: Keep your file names clean, lowercase and without unnecessary spaces before uploading.

Local Website

Files stored on your computer.

C:/my-website/index.html

Published Website

Files stored on hosting server.

https://yourdomain.com/
Important Terms

Domain, Hosting and cPanel

Understand these basic terms before publishing any website.

Term Meaning Example
Domain Website address typed by visitors example.com
Hosting Server space where website files are stored Shared hosting, VPS hosting
cPanel Hosting control panel used to manage files, emails and database File Manager, Email Accounts
public_html Main public folder for website files /public_html/index.html
SSL Security certificate for HTTPS https://example.com
Index File Default file loaded when website opens index.html or index.php
Remember: Your homepage file should usually be named index.html or index.php.
File Preparation

Prepare Website Files Before Upload

A clean file structure prevents broken images, missing CSS and link errors.

2 Recommended Structure

my-website/
├── index.html
├── about.html
├── contact.html
├── css/
│    └── style.css
├── images/
│    └── logo.png
└── js/
    └── script.js

3 Before Upload Checklist

  • Homepage is named index.html or index.php
  • CSS file path is correct
  • Images are inside images or assets folder
  • File names are lowercase and simple
  • No broken internal links
  • Website works locally in browser
Practice Task: Create a folder named portfolio-website and arrange index.html, css/style.css and images/profile.jpg.
Upload Process

How to Upload Website Using cPanel

Most shared hosting services provide cPanel File Manager for uploading website files.

Step 1

Login to your hosting cPanel account.

Step 2

Open File Manager and go to public_html.

Step 3

Upload website files or a zip file.

Step 4

Extract zip and test your domain in browser.

4 public_html Rule

Files placed inside public_html become visible on your main domain. For example, if index.html is inside public_html, it opens when someone visits your domain.

Correct:
/public_html/index.html
/public_html/css/style.css
/public_html/images/logo.png

Website URL:
https://yourdomain.com/

5 Subfolder Upload

If you want the website in a folder such as portfolio, create a folder inside public_html.

/public_html/portfolio/index.html

Website URL:
https://yourdomain.com/portfolio/
Tip: For practice projects, subfolders are useful. For main website homepage, use public_html directly.
Testing

Test Website After Upload

Testing ensures visitors get a smooth and error-free experience.

Visual Testing

  • Homepage opens correctly
  • CSS design is loading
  • Images are visible
  • Fonts and colors look proper
  • No layout overlap

Link Testing

  • Navigation links work
  • Buttons go to correct section/page
  • Email link opens email client
  • Social links are correct
  • No 404 missing page errors

Mobile Testing

  • Page opens well on phone
  • Text is readable
  • Buttons are easy to tap
  • Cards stack properly
  • No horizontal scroll issue
Common Problem: If CSS or images are not loading, check file path, folder name, spelling and letter case.
SEO Basics

Basic SEO Before Launch

SEO basics help search engines understand your webpage better.

6 Head Section Essentials

<title>My Portfolio Website</title>
<meta name="description" content="Personal portfolio of a beginner web designer.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

7 SEO Checklist

  • Use clear page title
  • Add meta description
  • Use one main H1 heading
  • Add alt text for images
  • Use readable content
  • Keep page mobile-friendly
Quick SEO Rule: Clear title, clean content, proper headings, mobile-friendly design and fast loading images.
Launch Checklist

Final Website Launch Checklist

Check these points before sharing your website link.

Ready to Publish?

Review your website like a professional before sending it to anyone.

File Checklist

  • index.html is present
  • CSS path is correct
  • Images are optimized
  • No unnecessary files uploaded
  • Folder names are clean

Design Checklist

  • Website looks professional
  • Text is readable
  • Spacing is consistent
  • Colors have good contrast
  • Mobile layout is tested

Launch Checklist

  • Domain opens correctly
  • HTTPS is working
  • Links are tested
  • Forms are checked
  • Website link is share-ready
Quick Quiz

Publishing Knowledge Check

Select the correct answers and check your score.

1. What is a domain?

A domain is the website address users type in a browser.

2. What is hosting?

Hosting is online server space where website files are stored.

3. Which folder commonly stores public website files in cPanel?

public_html is the main public folder for website files in many cPanel hosting accounts.

4. What should homepage file usually be named?

The homepage is usually named index.html or index.php.

5. If images do not load after upload, what should you check first?

Broken images are often caused by wrong path, folder name or file name spelling.
Quick Revision

Remember These Points

Revise these before moving to Chapter 28.

Publishing

Uploading website files to hosting server so visitors can access them online.

Domain

The website address visitors type in browser.

Hosting

Online server space where website files are stored.

public_html

Main folder for public website files in many cPanel hosting accounts.

index.html

Default homepage file loaded by browser.

Testing

Check links, images, CSS, mobile view and HTTPS before sharing website.