إعلانيمكن أن تكون علامتك التجارية هناعلامتك التجارية هنافي كل صفحة من Darslab · طلاب وأولياء أمور ومعلمونinfo@darslab.comاسأل عن الأسعارالأسعارinfo@darslab.com
☰ خطة العام · تكنولوجيا المعلومات والاتصالات (بالإنجليزية)

Folders and the structure of HTML

الأسبوع 8 · الوحدة ٣ «إنشاء صفحات الموقع» (١) الموضوع الأول لغة PHP وHTML وتطبيقات تصميم المواقع: ملفات ومجلدات المشروع، هيكل صفحة HTML، حفظ الصفحات واختبارها · 3 دروس
1

A project folder and file names

ICT Secondary 2 Term 1, Unit 3, Topic 1: pp. 56–68
GoalOrganise the project folder and save an HTML page under a correct file name.
New words
project folder · the one folder inside the server’s public folder that holds every file of the sitesub-folder · a folder inside the project folder for one kind of file, such as picplain text editor · a program that saves only the characters you type, with no fonts or coloursfile extension · the ending of a file name, such as .html, that tells programs what the file is
Explanation

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.

index.phpheader.phpimagespicvideodictionary
Worked examples
FileGoes in
help.phpdictionary
banner.webpimages
router.webppic
intro.mp4video
Mona lists where each file goes. The page files stay in the project folder and the other files go into the sub-folder of their kind.
Name typedWhat it isProblem?
page1.html.txta text filethe browser shows the code
page1.htmla web pagenone
page 1.htmla web pagea space in the name
Omar checks three names he typed in the save box. Only the second is a page the browser will show as a page.
Class activity

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.

Practice
1
Which folder holds all the files of the site?
2
What kind of program is enough to write HTML?
3
Why is page1.html.txt not a good name for a web page?
4
Where would the file router.webp go?