Publishing Your Web Page on the Internet
Congratulations! You’ve built your first web page, and you can use it as a template to build the rest of your site. You can create the other HTML files you need, using your index.html file as a starting point so you can reuse the banner and navigation bar, and any other content that you want to put on every page.
As we said at the start of this chapter, if you want people to view your website over the Internet, it needs to be hosted on a server. Most people rent web hosting services from companies like Go Daddy (
), 1 and 1 (
), or Fasthosts (
). They will sell you your own domain name (such as
yourname.co.uk), which people use to visit your site and link to it. You need to re-register the domain name every few years.
After you have set up your hosting account, you need to copy your website’s files from your Raspberry Pi to the server. You can use the FileZilla program to do this, which you can install from the command line (see Chapter 5) by using
sudo apt-get install filezilla
Figure 8-9 shows FileZilla in action. Where it says host at the top of the screen, enter your host name. In the next boxes, enter your username and password. Your hosting company can give you all of these.
The panels on the left show your Raspberry Pi, and the panels on the right show your server. You use the boxes in the top half of the screen to find the folders where your website is stored on your ...