What are the steps to host a website?

What are the steps to host a website?

I’ve been curious about this for a long time! I’ve been coding an HTML website on my PC and am eager to get it hosted. I’ve heard that if you want to host it yourself, your PC needs to be on all the time with internet access. But what if I use a service like GitHub? Do I still need to keep my PC running, or can I just upload my HTML files and have them hosted online?

I hope this makes sense and that you can offer some guidance.

EDIT: I’m leaning towards using GitHub. So my new question is: do I still need to keep my PC on, or can I simply upload my files to GitHub?

2 Likes

This might not be the best approach for you if you lack experience, but you can check out this guide for more information: How to Host Your Own Website.

2 Likes

To clarify, should I avoid trying to host it myself, or should I reconsider hosting it altogether?

2 Likes

I would recommend against hosting your website on your home PC.

2 Likes

If your website is just static HTML, consider using GitHub Pages.

2 Likes

What exactly is a static website?

1 Like

A static website consists solely of HTML, CSS, and JavaScript, and doesn’t require a server to manage any logic. For instance, a site that doesn’t need data storage, relies entirely on front-end logic through JavaScript, or simply displays text and images is considered a static website.

1 Like

Got it. I think I understand now. My website only uses HTML and CSS, and includes a few pictures and a video clip. Does that qualify as a static website?