WWW vs Public_HTML: Difference and Comparison

There are numerous websites on the internet that can be accessed through different web browsers. These websites and web contents are collected to a place from where users can search and get those contents according to their searches.

One can be confused about where the web contents are stored on the internet- WWW or Public_HTML. There are some differences between WWW and Public_HTML.

Key Takeaways

  1. The www folder is a subdomain representing the World Wide Web and is used to store website files accessible through the www prefix in a URL, while public_html is the main folder on a web server containing all files and directories for a website.
  2. Both www and public_html folders can store website content, but the public_html folder is necessary for hosting the website, whereas the www folder is optional.
  3. Redirecting the www subdomain to the main domain (or vice versa) ensures consistent URL usage and can improve SEO performance by preventing duplicate content issues.

WWW vs Public_HTML

www is a subdomain that stands for World Wide Web. It is used as a prefix in website URLs to show that the website is available via the internet. Public_html is a directory on a web server where website files are stored. www is a subdomain used in website URLs, while public_html is the directory.

WWW vs Public HTML

IT Quiz

Test your knowledge about topics related to technology

1 / 10

What does the acronym RAM stand for?

2 / 10

Firewall in computer is used for

3 / 10

The main function of smart assistants like Apple Siri and Amazon Alexa is

4 / 10

Which of the following is defined as an attempt to steal, spy, damage or destroy computer systems, networks, or their associated information?

5 / 10

A process that is repeated, evaluated, and refined is called __________

6 / 10

'.MOV' extension usually refers to what kind of file?

7 / 10

The core idea of develop AI is bulding machines and alogrithms to

8 / 10

What was the name of the space shuttle that landed man on the moon?

9 / 10

When a machine possesses the ability to mimic human traits like make decisions, predict the future, learn and improve on its own said to have

10 / 10

Who founded Apple Computers?

Your score is


WWW is considered to be the best information retrieval service on the internet. It is the combination of all users and resources on the internet that are using HTTP or Hypertext Transfer Protocol.

A British scientist called Berners-Lee first invented WWW in 1989. For accessing a web page on the WWW either you have to follow the hyperlink or type the URL of the web page.

Public_HTML refers to the directory on web servers that contains all HTML files and other web content that can be viewed on the internet.

When you open a web page, the page of the website loads from the directory of Public_HTML. It can be found and accessed from your cPanel account.

Comparison Table

Parameters of ComparisonWWWPublic_HTML
DefinitionWWW refers to the collection of web pages or websites stored on the internet.     Public_HTML is the directory where all the files of websites are stored and web browsers show the websites from this directory according to the web search.
TypeSymbolic link     Directory
AccessThrough a web browser.     Through cPanel account.
EntityNot an actual folder.    Actual folder.
CorrelationIt is the symbolic link to the directory of Public_HTML.     It is the directory that is shown through the symbolic link of the WWW.

What is WWW?

WWW refers to a global computer interface that is available through the internet. WWW consists of interconnected web pages made up of different types of multimedia and textual content.

It is based on hypertexts, which are the links that take you from one web page to another. WWW was invented in 1989 at CERN by a British computer scientist named Berners-Lee on a project of international communication. 

With the invention of WWW internet became accessible to everyone rather than just for the researchers. WWW connected the whole world which made it easier to share and get information and communicate.

People started to share their thoughts and work through video sharing, social network sites, and blogs.

Basically, WWW refers to an Internet server system that supports HTML formatted documents. It is a large-scale client-server system with numerous servers spread all over the world.

All the servers maintain specific documents, and the documents maintained are stored as files. Servers transfer the requested document to the client by accepting the request and fetching the specific document.

WWW is considered to be the most innovative and fastest-growing part of the Internet. WWW is mainly composed of three elements- HTTP, URL, and HTML. HTTP is used for governing the data transfer between a client and a server.

URL or uniform resource locator is used for accessing a web component. HTML is considered to be the most commonly used format for publishing web documents.

world wide web

What is Public_HTML?

Public_HTML refers to a public folder found on every web hosting account. It is the webserver directory that contains all the HTML-based documents on the internet.

It is the webroot of the primary domain name of the website. This public folder comprises all the web content when someone types the main domain name.

In other words, when users type a domain name into their web browser, whatever is stored in the Public_HTML folder will appear.

For accessing Public_HTML of your domain you need to first log in to the cPanel, under the file section click on the option for file manager, under the root directory of the primary domain you can see the Public_HTML folder.

If you create Addon domains and Addon subdomains they will be stored in the folder within the Public_HTML.

For instance, if you create an Addon domain named abcd.com, then the subfolder will be /public_html/abcd/ (unless specified as another name).

A Public_HTML folder needs to have 0750 permissions. Every folder within a Public_HTML needs to get 0755 permissions and every file inside a Public_HTML needs to have 0644 or 0755 permissions.

Sometimes scripts and websites suggest using 777 permissions. However, 777 files on any folder or file will result in the inaccessibility of the file.

Main Difference Between WWW and Public_HTML 

  1. WWW refers to the collection of the web pages or websites stored on the internet, on the other hand, Public_HTML is the directory where all the files of websites are stored and web browsers show the websites from this directory according to the web search.
  2. WWW is a symbolic link whereas Public_HTML is a directory.
  3. WWW is not an actual folder whereas Public_HTML is an actual folder within which all files and folders of your domain are stored.
  4. WWW can be accessed through several web browsers but Public_HTML is accessed through a cPanel account.
  5. WWW is the symbolic link to the directory of Public_HTML.
Difference Between X and Y 2023 07 13T125434.262
  1. https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=world+wide+web&oq=world+wide#d=gs_qabs&u=%23p%3D_9mXgxEPnY4J
  2. https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=cpanel+login&oq=cpanel#d=gs_qabs&u=%23p%3DIykKTRO3nRcJ

Last Updated : 13 July, 2023

dot 1
One request?

I’ve put so much effort writing this blog post to provide value to you. It’ll be very helpful for me, if you consider sharing it on social media or with your friends/family. SHARING IS ♥️

Leave a Comment

Your email address will not be published. Required fields are marked *

Want to save this article for later? Click the heart in the bottom right corner to save to your own articles box!