PART 7
SAVING FILES CORRECTLY
![]() |
| ![]() |
I want you to get in the habit of ALWAYS saving everything that you want to use for your web page IN THE SAME FOLDER. I tend to create a new project folder for every website I create – and save these folders in My Documents.I want you to do the same. So – let’s SAVE what we have already created in a NEW folder. This is how to do it. Click on the File menu. |
In the menu that will appear, click on SAVE AS. Make sure in the Save In field My Documents is selected. If not – use the drop down menu to select it. Your screen will now look like this: |
Before we save anything – as just discussed – we are going to create a NEW folder in which we will save EVERYTHING do with your website. Click on this icon |
This will open up a new folder as follows |
Right clicking on the words New Folder will allow you to rename the folder. Do this – and rename the folder test. Now – we are going to save everything to do with your website IN this newly created folder called test Double click on the folder itself to select and open it. Your screen will now look like this
|
As you can see – here is the folder we have just created. I know I am laboring this point a little – but it is VERY important that you get in the practice of saving everything you need for your website in THE SAME FOLDER – and this is by far the easiest way to do it. So let’s get back to Kompozer. We are about to save the first page you have created – into this Test folder. By now your screen should be looking like this |
At the bottom of the screen you will see File Name and Save as type. In the File Name field you will see the words My First Web Site.xhtml. Please note – depending on which computer you are using – it may say My First Web Site.html instead of xhtml. This makes no difference so do not worry about this (xhtml is ‘newer’ than html – but both work fine). HTML or XHTML is a type of computer file. Basically html or xhtml is the language that computers work in. By default your computer will have filled in the words My First Web Site as that is - of course - the name we have just given to this first page you are creating. However, we DO need to change the File Name BEFORE we save it. Do NOT accept My First Web Site.xhtml as the file name. Let’s just recap on this. ‘My First Web Site’ is the name you have given to the first page of your web site. This is the ‘human’ name if you like – the name that you and I will see and use. But there is ALSO a computer file name for this same page – in other words a name that only computers recognize. And it is this computer file name we need to change. I know the first time you hear this it can sound a bit confusing – so please – just read this slowly – and a few times if necessary. You will understand it. Every main page on a website is called a HOME page (as I’m sure you know). Home pages on websites are always SAVED in the same way. And that way is as follows. HOME pages are saved as ‘index.html’ Repeat after me... . Home pages are always saved as index.html You don’t need to know why, just that they are. There fore, we need to CHANGE the file name in the illustration above, to index.html. |
So, DELETE My First Web Site.html from the File Name And replace with index.html Your screen should look like this now.
And replace with index.html.
Your screen should look like this now.
|
No comments:
Post a Comment