Once you've created your first page, you need to upload it to your web host so that it's accessible to anybody connected to the internet. The method for doing this will vary depending on the tool (if any) that you used to create the page, and your web host. The example we're going to give in this section is based on the NVU editor and Bluehost, but if you're using other tools or hosts, the overall process should be pretty similar.
If my page didn't include any picture or other graphics, then I could just save it as an HTML file (using File -> Save or File -> Save As), and then upload that file to my website using the File Manager from the Bluehost control panel. In this case, however, since my page includes pictures, it's a little more complicated, and there's a better way to upload it.
If I go to the bottom of the NVU screen and hit the Source button, the HTML code for my page is displayed.
The part that's highlighted shows how HTML handles images. This part begins with a tag indicating that an image is to be inserted into the page (“<img”), gives some data about the image (it's size and position etc.), and then gives the path to the file where the image is located.
As you can see, this path is to the location of the file on my computer. So, if I just uploaded the web page as it is, it would work on my computer because the image would exist in that location, but it wouldn't work on anybody else's computer.
What I need to do to overcome this is to upload both my web page and the images it references to my website, and also to change the path for his image so that it references the copy of the image uploaded to my website rather than the copy on my local computer.
While this may seem like a complex process, tools like NVU support a Publish function which does all of this in one go. To invoke this, I select Publish or Publish As from the File menu.
In the Settings tab, I need to fill in the following:
In the Publish tab, there are a few more fields to fill in:
Make sure you check the box to include images and other files, otherwise these won't show up on your site. You can either have the image files located in the same directory as the file containing your web page, or use a different directory to keep the images separate if you prefer.
When that's all done, hit Publish, and you'll get a window showing you the progress of your upload. If no errors occur, then you can go to your website and view the result.
<-- Previous Page Your First Web Page |
Next Page --> Frequently Asked Questions |