I have learned HTML CSS js but the problem is that when I code, I code over an HTML document and i can't find my website on google BCS it's an HTML document, therefore, I want help from you to make my own website link like https::/loremimpsum.com (.org .tb, etc.) problem
CodePudding user response:
Bro i will explain everything to you.
websites are not converted or complied.
the html document is on your computer but a website is seen and stored on a server.
so the html file will be present in the server.
now you can get a server but it will not be hosted meaning no other computer would be connected to it.
also server and website hosting costs much but there are some free website hosters like 000webhost.com
you can literally get your own url.
like i have made 10 - 12 websites on it and one of them link is :-->
https://coronaprecautionsbyhimanshu.000webhostapp.com/Corona Virus Part 1.. (1).html
welp it has actually a .html thing in url but there is a file named .htaccess
using that i have changed my new website url which has link:==>
https://webrequirement.000webhostapp.com/
If you want help hosting your website then comment me back.
CodePudding user response:
The "website link" is called a domain and you cannot make one. You can search for your desired domain address on many hosting sites and see if it's taken or not. If it's available, you will need to pay for it to be registered. Domains have to be renewed annually in most cases.
Before you can do anything with your domain though, you need to have a server running which hosts your web services (such as a webiste). Typically, this means a separate device (physical or virtual) which has a static public IP address. For experimenting purposes, you can set this up on your personal computer, but this is not advised for long-term hosting for multiple reasons.
There are many types of web server softwares and the right choice comes down to your personal project and needs. Most well known solutions are: Apache, IIS, Node.js...
When you have a server, you must configure your DNS settings (this happens on the website of your domain host) to point at the server's IP address. After this gets registered, your server can be reached over the internet, through your domain address.
Hosting a simple website can be as simple as dragging your site files (your .html
, .css
, .js
files along with necessary assets) to a specific folder on the server - default generated might be: <path>/www/
or <path>/public_html/
. When developing simple .html
, .css
, .js
files, there is absolutely no conversion or compilation process. The website is directly displayed from them.
If you use something like Angular however, then you'll want to build
your project and move the generated package instead (which is just a collection of the previously mentioned files).
Web browsers try to access port 80 (for HTTP) or 443 (for HTTPS) to display your website. You want your website service to listen to these ports, but this might be already part of your default config files for the web server software. You might need to do additional firewall configuration to allow traffic to reach your services.
You can rent a web server which is ready to host your content for you. Of course this involves a monthly fee if you want to have anything that's useful.