How do I host a website?

I’ve been wondering about this for a long time! How do I host a website? I’ve been coding an HTML website on my PC and want to host some of my sites. I’ve heard that if you host it yourself, you need to use your PC, which means it has to be on all the time and connected to the internet. But how does it work if I use GitHub? Do I need to use my PC, or do I just upload my HTML to the internet?

I hope you understand what I mean and can help me.

EDIT: I think I’m going to use GitHub. My new question is: do I still need to have my PC on, or do I just upload the files to GitHub?

1 Like

1.) what host should I use, eg host gator?

2.) how much to expect to pay? What’s the cheapest option

3.) any other tips/relevant info I should be aware of.

I’m relatively new, but I know CSS, HTML, and JavaScript, and want to finally build something.

Thank you!

Hello @Jason! You should just upload your HTML files to your GitHub repository, and let GitHub take care of the rest. There is no need to keep your PC on all the time.

How to Host a Website in 4 Steps

  1. Select a type of web hosting.
  2. Assess your website hosting needs.
  3. Choose a web hosting provider.
  4. Purchase a domain name.

GitHub for Version Control: GitHub is a fantastic platform for code version control, not directly for website hosting. It allows you to track changes to your website files and collaborate with others easily.

GitHub Pages for Free Hosting: However, GitHub offers a feature called GitHub Pages. This allows you to host static websites (websites built with HTML, CSS, and JavaScript) for free on their servers. Here’s the key point: You upload your website files to a specific repository on GitHub, and they handle the hosting part. Your PC does not need to be on or connected.

Picking a web hosting service is easy! Just pick a plan, grab a domain name and follow their steps to get your site up and running!

How to host a website in 5 steps

Learn for yourself. Make sure you make the best choice for your company by researching the many website hosting options before deciding on one.
Select a supplier.
Select your strategy.
Put your domain here.
Select the bundle that you want.