# Web hosting

> Renting space on an always-on computer so your website is reachable by anyone.

- Level: Basic
- Topics: Cloud
- URL: https://tidbit.legios.com.ar/web-hosting/
- In Spanish: [Hosting web](https://tidbit.legios.com.ar/es/web-hosting/)

**Web hosting** is the service of keeping a website's files and programs on a server that is connected to the internet day and night. You could run a site from your own laptop, but it would vanish whenever the laptop slept or the Wi-Fi dropped. A hosting provider rents you space on machines in a data center with stable power, fast connections and people watching them.

Hosting comes in several sizes. **Shared hosting** puts many small sites on one server, which is cheap and simple. A virtual private server (VPS) gives you your own slice of a machine to configure. Cloud platforms let you rent exactly the computing you use and grow when traffic spikes. **Static hosting** serves plain HTML, CSS and JavaScript files, often through a CDN, and is ideal for blogs, portfolios and documentation.

Hosting is separate from the domain name. The domain is the address people type; the hosting is the place where the site actually lives. You connect them by pointing the domain's DNS records at the host. Many companies sell both together, but you can keep them apart and move your site to another host without changing its address.

## An analogy

Renting a shop on a busy street instead of selling from your living room. The landlord keeps the lights on and the doors open; you just stock the shelves.

## Keep in mind

- Keeps a website on servers that are always on and online.
- Options range from cheap shared hosting to VPS and full cloud platforms.
- Domain and hosting are different things, connected through DNS.
- Static sites can be hosted very cheaply, often through a CDN.

## Go deeper

- [Publishing your website (MDN)](https://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started/Your_first_website/Publishing_your_website)
- [What is a web server? (MDN)](https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_web_server)
- [Web hosting service on Wikipedia](https://en.wikipedia.org/wiki/Web_hosting_service)

## Related terms

- [Server](https://tidbit.legios.com.ar/server/): A computer whose job is to answer requests from other computers, all day, every day.
- [Internet](https://tidbit.legios.com.ar/internet/): A worldwide network of networks that lets any connected device reach any other.
- [Wi-Fi](https://tidbit.legios.com.ar/wi-fi/): Networking over radio waves: the internet without the cable, within a few rooms.
- [Data center](https://tidbit.legios.com.ar/data-center/): A building full of servers where the internet, the cloud and AI actually run.
- [Cloud computing](https://tidbit.legios.com.ar/cloud-computing/): Renting computers over the internet instead of buying your own.
- [HTML](https://tidbit.legios.com.ar/html/): The text format that describes what is on a web page: headings, paragraphs, links.
- [CSS](https://tidbit.legios.com.ar/css/): The language that decides how a web page looks: colors, fonts, spacing, layout.
- [JavaScript](https://tidbit.legios.com.ar/javascript/): The programming language that runs inside web pages and makes them interactive.
