Creating a website without hosting is possible, but it's not recommended for beginners. To have an online website, you need to have a domain name and a web hosting provider. Without those two options, you have no way for people to access your website and you have no place to store your website files. Well, the short answer is yes, you can create a website without hosting.
However, if you're a beginner I wouldn't recommend it, since configuring your computer to work as a hosting server can be very technical. Can I create a website without a hosting provider? Any website requires hosting to be able to access it on the web. You can launch and customize a web project without having to choose a hosting provider right from the start, but you'll definitely need it to securely store a website and get it up and running. If you're an experienced web developer, you can set up your own server and host your website on it.
This requires some technical knowledge and is not recommended for beginners. You'll need to configure the server, install the necessary software, and make sure that the server is secure and reliable. If you're not an experienced web developer, then I would recommend using a web hosting provider. There are many different hosting providers available, so you should be able to find one that meets your needs.
Most hosting providers offer easy-to-use control panels that make it easy to manage your website. In conclusion, while it is possible to create a website without hosting, it's not recommended for beginners. If you're an experienced web developer, then you may be able to set up your own server and host your website on it. Otherwise, I would recommend using a web hosting provider.