Course Content
Project file
0/1
Complete Web Designing Course for Beginners

Lesson 11.2 – What is Web Hosting?

Introduction

In the previous lesson, we learned that a domain name is the address of a website. However, having a domain name alone is not enough. A website also needs a place where all its files, images, videos, databases, and code can be stored.

This storage space is called Web Hosting.

Whenever someone visits a website, the browser requests files from a hosting server. The server sends the required files back to the browser, allowing the website to appear on the screen.

In this lesson, we will learn what web hosting is, how it works, different types of hosting, and how hosting and domain names work together.


What is Web Hosting?

Web hosting is a service that stores website files on a server and makes them accessible on the internet.

Definition

Web hosting is the process of storing website data on a server that is connected to the internet 24/7.

Without hosting:

  • Website files cannot be accessed online.
  • Visitors cannot open the website.
  • The domain name has nowhere to point.

Understanding Web Hosting with a Real-Life Example

Think of a website as a house.

Website Component Real-Life Example
Domain Name House Address
Hosting Server House Building
Website Files Furniture and Items Inside House

Example:

 
Address = www.mywebsite.com
Building = Hosting Server
Files = HTML, CSS, Images, Videos
 

Just as people need an address to find a house, users need a domain name to find a website.


How Web Hosting Works

When a website is uploaded to a hosting server, the server stores all website files.

Process

Step 1

Website files are uploaded to a hosting server.

 
index.html
style.css
images/
videos/
 

Step 2

A domain name is connected to the hosting server.

Example:

 
www.mywebsite.com
 

Step 3

User enters the domain name in a browser.

Step 4

DNS finds the server’s IP address.

Step 5

The browser requests website files.

Step 6

The server sends files to the browser.

Step 7

The website appears on the user’s screen.


What is a Web Server?

A web server is a powerful computer that stores website files and delivers them to visitors over the internet.

Popular web servers include:

  • Apache
  • Nginx
  • LiteSpeed
  • Microsoft IIS

The server remains online all day and night so visitors can access websites anytime.


Files Stored on Hosting

A hosting server stores many types of files.

HTML Files

 
index.html
about.html
contact.html
 

CSS Files

 
style.css
responsive.css
 

JavaScript Files

 
app.js
script.js
 

Images

 
logo.png
banner.jpg
 

Databases

 
MySQL Database
 

Videos and Documents

 
course.mp4
notes.pdf
 

Types of Web Hosting

Different websites require different hosting solutions.


1. Shared Hosting

In shared hosting, multiple websites share the same server resources.

Example

 
Server
├── Website A
├── Website B
├── Website C
└── Website D
 

Advantages

  • Low cost
  • Easy setup
  • Beginner friendly

Disadvantages

  • Slower performance during high traffic
  • Shared resources
  • Limited control

Best For

  • Personal websites
  • Small business websites
  • Portfolio websites

2. VPS Hosting

VPS stands for Virtual Private Server.

A physical server is divided into multiple virtual servers.

Example

 
Physical Server
├── VPS 1
├── VPS 2
└── VPS 3
 

Each VPS has dedicated resources.

Advantages

  • Better performance
  • More control
  • Scalable

Disadvantages

  • More expensive than shared hosting
  • Requires technical knowledge

Best For

  • Growing websites
  • Medium-sized businesses

3. Dedicated Hosting

A complete server is allocated to a single website.

Example

 
One Server

One Website
 

Advantages

  • Maximum performance
  • Full control
  • High security

Disadvantages

  • Very expensive
  • Requires server management skills

Best For

  • Large businesses
  • High-traffic websites

4. Cloud Hosting

Cloud hosting uses multiple connected servers.

Example

 
Server 1

Server 2

Server 3
 

If one server fails, another continues serving the website.

Advantages

  • High reliability
  • Easy scaling
  • Better uptime

Disadvantages

  • Pricing may vary
  • Configuration can be complex

Best For

  • Modern web applications
  • Growing startups
  • Large-scale projects

5. Managed Hosting

The hosting provider manages:

  • Security
  • Updates
  • Backups
  • Server maintenance

Advantages

  • Easy to manage
  • Professional support
  • Enhanced security

Best For

  • Beginners
  • Businesses
  • Non-technical users

Important Hosting Features

Before purchasing hosting, consider the following features.


Storage Space

Storage is the amount of disk space available.

Examples:

 
10 GB
50 GB
100 GB
Unlimited
 

Used for:

  • Website files
  • Images
  • Videos
  • Databases

Bandwidth

Bandwidth refers to the amount of data transferred between the server and visitors.

Higher traffic requires higher bandwidth.

Example:

 
100 Visitors → Low Bandwidth

100,000 Visitors → High Bandwidth
 

Uptime

Uptime indicates how often a website remains online.

Example:

 
99.9% Uptime
 

Higher uptime means fewer website outages.


SSL Certificate

SSL secures communication between users and websites.

Without SSL:

 
http://example.com
 

With SSL:

 
https://example.com
 

Benefits:

  • Data security
  • Better trust
  • Improved SEO

Backup

Backups allow website recovery if files are deleted or corrupted.

Good hosting providers offer:

  • Daily backups
  • Weekly backups
  • Automatic backups

Security Features

Important security features include:

  • Firewall
  • Malware scanning
  • DDoS protection
  • Secure login systems

Domain Name and Hosting Connection

A website requires both a domain name and hosting.

Example

Domain:

 
www.myacademy.com
 

Hosting:

 
Server storing website files
 

Connection Flow:

 
User

Domain Name

DNS

Hosting Server

Website Displayed
 

Free Hosting vs Paid Hosting

Feature Free Hosting Paid Hosting
Cost Free Paid
Performance Limited Better
Storage Limited Larger
Security Basic Advanced
Support Limited Professional
Custom Domain Often Restricted Supported

Common Uses of Web Hosting

Web hosting is used for:

  • Personal portfolios
  • Company websites
  • E-commerce stores
  • Blogs
  • Online courses
  • Web applications
  • Educational portals

Common Beginner Mistakes

Choosing Hosting Only Based on Price

Cheap hosting may provide poor performance.


Ignoring Uptime

Low uptime can make websites unavailable.


Ignoring Security

Poor security can result in hacking and data loss.


Not Taking Backups

Without backups, recovery becomes difficult.


Buying Unnecessary High-End Hosting

Small websites usually do not need expensive dedicated servers.


Example Website Hosting Setup

Suppose you create a portfolio website.

Files:

 
index.html
about.html
style.css
profile.jpg
 

Hosting stores these files.

Domain:

 
www.johnportfolio.com
 

When visitors enter the domain name, the hosting server delivers these files and displays the website.


Summary

Web hosting is a service that stores website files and makes them available on the internet. Hosting servers run 24/7 and deliver website content whenever users visit a website. Common hosting types include Shared Hosting, VPS Hosting, Dedicated Hosting, Cloud Hosting, and Managed Hosting. Important hosting features include storage, bandwidth, uptime, SSL, backups, and security. A website requires both a domain name and web hosting to become accessible online.

Scroll to Top