A project folder and file names
Before you write a page, prepare the place for it. The site lives in one project folder, called dictionary, inside the server’s public folder, the folder the web server program shows to visitors. Inside it come sub-folders: pic for the pictures of terms, images for the banner, video for videos. The eight page files, such as index.php and header.php, go in the project folder itself. HTML needs no special program: you type it in any plain text editor and save it as plain text with the extension .html or .htm. Check the whole name before you press save. Some programs quietly add .txt, giving page1.html.txt, which is a text file and not a page: the browser would show the code instead of the page. Keep the names short, English, lowercase and without spaces.
| File | Goes in |
|---|---|
| help.php | dictionary |
| banner.webp | images |
| router.webp | pic |
| intro.mp4 | video |
| Name typed | What it is | Problem? |
|---|---|---|
| page1.html.txt | a text file | the browser shows the code |
| page1.html | a web page | none |
| page 1.html | a web page | a space in the name |
Make a plan on paper for a folder named clubsite with sub-folders for pictures, banner images and videos. List ten files (page files and others) and write the folder where each one belongs. Then write the exact name you would type when saving the first page.