Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← Web File Management Β· Lesson 3 of 5

File Naming and Folder Structure

πŸ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
3
Module Two: File Naming and Folder Structure

Module Two: File Naming and Folder Structure

Module Introduction

Welcome back, young explorer! In Module One, you learned what web file management is. You learned that a file is information stored on a computer with a name. You learned that a folder is a container that holds files. You learned that websites use many types of files, and that the client asks while the server answers.

Now it is time to learn two very important skills: naming files properly and organising them into folders.

These two skills are the foundation of good web file management. If you name your files well and put them in the right folders, your website will work smoothly. If you name them badly and scatter them everywhere, your website will break.

Imagine you have a huge library with thousands of books. If the books have no titles on the cover and are thrown randomly on the floor, you will never find the one you want. But if every book has a clear title and sits on the right shelf, you can find any book in seconds. File naming and folder structure are exactly like that for websites.

By the end of this module, you will be able to name any file properly and design a clean folder structure for any website project.

Let us begin. Your files are waiting to be organised!


Learning Objectives

By the end of this module, you will be able to:

  1. Explain why file naming is important.
  2. List the rules for naming files properly.
  3. Recognise bad file names and fix them.
  4. Explain what a folder structure is.
  5. Design a simple folder structure for a website.
  6. Identify the main folders every website should have.
  7. Explain how folder structure affects search engines (SEO).
  8. Explain how folder structure affects accessibility.
  9. Fix common folder structure mistakes.
  10. Feel confident designing file names and folder structures for real projects.

Warm-up Story

The Story of Ada and the Photo Disaster

Ada is a thirteen‑year‑old girl who lives in Abuja, Nigeria. She loves photography. She takes photos of her family, her school events, and the beautiful streets of her city.

One day, Ada decided to build a photography website. She wanted to share her best photos with the world. She was very excited.

She opened her computer and started uploading photos. But she was in a hurry. She did not name her files carefully. She did not organise them into folders.

Her website folder looked like this:

   Ada's Messy Folder:
   +-----------------------------+
   |  IMG_001.jpg                |
   |  IMG_002.jpg                |
   |  photo.jpg                  |
   |  final.jpg                  |
   |  final final.jpg            |
   |  newpic.jpg                 |
   |  asdfgh.jpg                 |
   |  DSC_9843.JPG               |
   |  my photo!.jpg              |
   |  school event photo.jpg     |
   +-----------------------------+

When Ada opened her website, things went wrong. Some photos did not show. Some links were broken. The website looked messy.

Ada felt sad. She called her older brother, Chidi, who worked as a web designer.

"Chidi," said Ada, "my website is a disaster. The photos are not showing."

Chidi looked at her folder and laughed gently. "Ada," he said, "your problem is not the photos. Your problem is the names and the folders."

"What do you mean?" asked Ada.

"Look at these file names," said Chidi. "IMG_001.jpg tells us nothing. final final.jpg has spaces and repeated words. my photo!.jpg has a space and an exclamation mark. This is a mess."

Ada sighed. "I did not know names mattered."

"They matter a lot," said Chidi. "Good names make files easy to find. Bad names cause confusion. And folders? You need folders."

Chidi showed Ada how to rename her files and organise them into folders:

   Ada's Organised Folder:
   +-----------------------------+
   |  index.html                 |
   |  images/                    |
   |    family/                  |
   |      family_portrait_2025.jpg
   |      family_holiday_abuja.jpg
   |    school/                  |
   |      school_sports_day.jpg  |
   |      school_graduation.jpg  |
   |    city/                    |
   |      abuja_street_01.jpg    |
   |      abuja_sunset.jpg       |
   +-----------------------------+

When Ada reopened her website, everything worked perfectly. The photos showed. The pages loaded fast. The website looked professional.

"I cannot believe the difference!" said Ada.

"Names and folders," said Chidi. "Never underestimate them."

Ada learned her lesson. From that day, she always named her files carefully and organised them into folders.

Now it is your turn. Are you ready to learn file naming and folder structure?


Main Lessons

Lesson 1: Why File Naming Matters

Definition: File naming is the practice of giving files clear, consistent, and useful names.

Why it is important: Good names help you find files quickly. They also help servers, browsers, and search engines understand your files.

Simple explanation: Imagine you have two bottles in your kitchen. One is labelled "Salt." The other is labelled "White stuff." Which one would you trust? A clear name tells you exactly what is inside. File names work the same way.

Real-life example: A photographer names photos like "wedding_lagos_2025_01.jpg" instead of "IMG_9234.jpg."

School example: A student names an assignment "maths_homework_chapter4.docx" instead of "hw.docx."

Home example: A family names budget files "family_budget_march_2025.xlsx" instead of "budget new.xlsx."

Nigerian example: A trader names product photos "ankara_blue_dress_01.jpg" instead of "photo3.jpg."

Illustration:

   Bad Name:                     Good Name:
   +----------------+            +----------------------+
   |  hw.docx       |            |  maths_hw_ch4.docx   |
   +----------------+            +----------------------+
   |  Confusing     |            |  Clear and useful    |
   +----------------+            +----------------------+

Mini summary: File names matter. They help you, servers, browsers, and search engines understand what is inside.

Lesson 2: Rules for Naming Files

Definition: There are simple rules for naming files. Following them keeps your files clean and working.

Why it is important: Some names break websites. Others slow them down. Following the rules prevents problems.

Simple explanation: Imagine writing a letter. If you use neat handwriting, people can read it. If you scribble, nobody understands. Naming files neatly is the same.

Real-life example: A web developer names files "about_us.html" instead of "About Us!.html."

School example: A teacher names the class list "class8_students_2025.xlsx."

Home example: A family names their holiday photo "holiday_abuja_2025_01.jpg."

Nigerian example: A business names its logo "company_logo_lagos.png" instead of "LOGO FINAL!!.png."

Illustration:

   Rules for Naming Files:
   +-------------------------------+
   | 1. Use lowercase letters      |
   | 2. Use underscores (_)        |
   | 3. Avoid spaces               |
   | 4. Avoid special characters   |
   | 5. Be descriptive             |
   | 6. Keep names short           |
   | 7. Include dates if useful    |
   +-------------------------------+
Rule Bad Example Good Example
Use lowercase Logo.PNG logo.png
Use underscores about us.html about_us.html
Avoid spaces my photo.jpg my_photo.jpg
Avoid special characters photo!.jpg photo.jpg
Be descriptive img_001.jpg abuja_sunset.jpg
Keep names short this_is_a_very_long_name_for_a_simple_file.jpg simple_file.jpg
Include dates if useful report.pdf report_2025_03.pdf

Mini summary: Follow simple rules for naming files: lowercase, underscores, no spaces, no special characters, be descriptive, keep it short.

Lesson 3: Understanding File Extensions

Definition: A file extension is the letters at the end of a file name after the dot. It tells the computer what type of file it is.

Why it is important: The extension tells the computer how to open the file. Wrong extensions cause errors.

Simple explanation: Imagine labels on jars in a kitchen. "Sugar," "Salt," "Pepper." The label tells you what is inside. A file extension is the same. ".jpg" means image. ".html" means web page.

Real-life example: A photo has ".jpg" at the end. A web page has ".html" at the end.

School example: A homework file has ".docx" at the end.

Home example: A family budget has ".xlsx" at the end.

Nigerian example: A product photo has ".jpg" at the end.

Illustration:

   File Name with Extension:
   +-------------------+
   |  sunset.jpg       |
   +-------------------+
          |
          V
     .jpg is the extension
          |
          V
     Tells the computer: "This is an image."
Extension Meaning Example
.html Web page index.html
.css Style sheet style.css
.js JavaScript file script.js
.jpg / .png Image logo.png
.mp4 Video intro.mp4
.mp3 Audio song.mp3
.pdf Document report.pdf
.json Data file data.json

Mini summary: The extension tells the computer what type of file it is. Always use the correct extension.

Lesson 4: Naming Web Pages

Definition: Web pages are HTML files with clear names that describe the page content.

Why it is important: Web page names become part of the website's URL. Good names help visitors and search engines understand the page.

Simple explanation: Imagine a book with chapter titles. If the titles are clear, you know what each chapter is about. Web page names work the same way.

Real-life example: A website has pages called "about.html," "contact.html," and "services.html."

School example: The school website has pages called "admission.html," "events.html," and "staff.html."

Home example: A family blog has pages called "home.html," "photos.html," and "stories.html."

Nigerian example: A business website has pages called "products.html," "prices.html," and "contact.html."

Illustration:

   Web Page Names:
   +-------------------+
   |  index.html       |   <-- homepage
   |  about.html       |   <-- about page
   |  contact.html     |   <-- contact page
   |  products.html    |   <-- products page
   +-------------------+
Page Good Name Bad Name
Homepage index.html homepage final.html
About Us about.html About Us!.html
Contact contact.html contact page new.html
Products products.html prod list v3.html

Mini summary: Web page names should be short, clear, and describe the page content.

Lesson 5: Naming Images

Definition: Image names are the file names given to pictures used on a website.

Why it is important: Image names help search engines find your images. They also help you identify images quickly.

Simple explanation: Imagine you have a box of photos with no labels. You cannot tell what each photo shows without looking. Image file names are the labels.

Real-life example: A photographer names photos "wedding_lagos_2025_01.jpg" instead of "IMG_001.jpg."

School example: A teacher names class photos "class8_2025_group.jpg."

Home example: A family names holiday photos "holiday_abuja_2025_01.jpg."

Nigerian example: A trader names product photos "ankara_blue_dress_front.jpg."

Illustration:

   Image Names:
   +-----------------------------+
   |  Bad:                       |
   |    IMG_001.jpg              |
   |    photo.jpg                |
   |    DSC_9843.jpg             |
   +-----------------------------+
   |  Good:                      |
   |    wedding_lagos_2025_01.jpg
   |    class8_group_2025.jpg    |
   |    ankara_blue_dress.jpg    |
   +-----------------------------+
Image Good Name Bad Name
School logo school_logo.png logo final.png
Class photo class8_group_2025.jpg IMG_3857.jpg
Product photo ankara_blue_front.jpg photo1.jpg
Holiday photo holiday_abuja_2025.jpg DSC_9823.jpg

Mini summary: Image names should describe what the image shows. This helps search engines and helps you find images.

Lesson 6: Naming CSS and JavaScript Files

Definition: CSS and JavaScript files have their own naming conventions. They should be short and clear.

Why it is important: These files control the look and behaviour of a website. Clear names help developers find them quickly.

Simple explanation: Imagine you have tools in a toolbox. If the hammer has no label, you cannot find it. CSS and JS file names are the labels on the tools.

Real-life example: A website has a file called "style.css" for styling and "script.js" for behaviour.

School example: The school website has "school.css" for its colours and "menu.js" for the menu.

Home example: A family blog has "blog.css" and "gallery.js."

Nigerian example: A business website has "shop.css" and "cart.js."

Illustration:

   CSS and JS File Names:
   +-----------------------------+
   |  style.css        <-- main style   |
   |  school.css       <-- specific     |
   |  script.js        <-- main scripts |
   |  menu.js          <-- specific     |
   +-----------------------------+
File Purpose Good Name Bad Name
Main styles style.css styles final.css
School styles school.css school style new.css
Main scripts script.js scripts old.js
Menu scripts menu.js menu final v2.js

Mini summary: CSS and JavaScript file names should be short, lowercase, and descriptive.

Lesson 7: What is Folder Structure?

Definition: A folder structure is the way folders are arranged inside each other to organise files.

Why it is important: A good folder structure keeps files organised and easy to find. It also helps the website work correctly.

Simple explanation: Imagine a school with classrooms. Each class has its own room. The library is in a separate building. The sports field is outside. A website folder structure is similar: each type of file has its own folder.

Real-life example: A news website has folders for "articles," "photos," and "videos."

School example: The school website has folders for "admission," "events," and "staff."

Home example: A family blog has folders for "photos," "videos," and "stories."

Nigerian example: A business website has folders for "products," "prices," and "reviews."

Illustration:

   Folder Structure:
   +---------------------------+
   |  website/                 |
   |    +-- index.html         |
   |    +-- about.html         |
   |    +-- css/               |
   |    |    +-- style.css     |
   |    +-- js/                |
   |    |    +-- script.js     |
   |    +-- images/            |
   |    |    +-- logo.png      |
   |    +-- pages/             |
   |         +-- contact.html  |
   +---------------------------+

Mini summary: A folder structure organises files into folders. Each type of file has its own folder.

Lesson 8: The Main Folders Every Website Needs

Definition: Most websites have the same basic folders: root, css, js, images, and pages.

Why it is important: Using standard folder names helps you and others understand the structure.

Simple explanation: Imagine a school with standard rooms: classroom, library, sports field. Every website has standard folders: css, js, images. These are like the standard rooms of a website.

Real-life example: A developer creates folders called "css," "js," and "images" for every new website.

School example: A student creates folders for each subject: "maths," "english," "science."

Home example: A family creates folders for "photos," "videos," and "documents."

Nigerian example: A business creates folders for "products," "customers," and "orders."

Illustration:

   Standard Website Folders:
   +---------------------------+
   |  website/                 |
   |    +-- index.html         |  <-- root
   |    +-- css/               |  <-- styles
   |    +-- js/                |  <-- scripts
   |    +-- images/            |  <-- pictures
   |    +-- pages/             |  <-- other pages
   +---------------------------+
Folder Purpose Example Contents
Root Top-level files index.html, about.html
css/ Stylesheets style.css, school.css
js/ Scripts script.js, menu.js
images/ Pictures logo.png, banner.jpg
pages/ Other HTML pages contact.html, services.html

Mini summary: Every website needs at least: root, css, js, images, and pages folders.

Lesson 9: Organising Images in Subfolders

Definition: Subfolders are folders inside folders. They help organise images into smaller groups.

Why it is important: A website with many images needs subfolders. Otherwise, the images folder becomes messy.

Simple explanation: Imagine a school with classrooms numbered 1 to 100. It is easier to find a class if rooms are grouped by floor. Subfolders group images by topic.

Real-life example: A photography website has subfolders for "weddings," "portraits," and "landscapes."

School example: A school website has subfolders for "sports," "events," and "students."

Home example: A family blog has subfolders for "holidays," "birthdays," and "school."

Nigerian example: A business website has subfolders for "ankara," "lace," and "shoes."

Illustration:

   Images with Subfolders:
   +-------------------------------+
   |  images/                      |
   |    +-- school/                |
   |    |    +-- sports_day.jpg    |
   |    |    +-- graduation.jpg    |
   |    +-- family/                |
   |    |    +-- holiday_abuja.jpg |
   |    |    +-- birthday_ada.jpg  |
   |    +-- city/                  |
   |         +-- abuja_sunset.jpg  |
   +-------------------------------+
Type of Website Suggested Subfolders
Photography weddings/, portraits/, landscapes/
School sports/, events/, students/
Business products/, services/, team/
Blog photos/, videos/, illustrations/

Mini summary: Subfolders group images into smaller, more organised sets.

Lesson 10: The Root Folder

Definition: The root folder is the top-level folder that holds everything for the website.

Why it is important: The root folder is the starting point for all other folders and files.

Simple explanation: Imagine a house. The root folder is the front door. Inside, there are rooms (folders) and furniture (files).

Real-life example: A website's root folder is called "website" or the website name.

School example: The school website's root folder might be called "school_website."

Home example: A family blog's root folder might be called "family_blog."

Nigerian example: A business website's root folder might be called "shop_website."

Illustration:

   Root Folder:
   +---------------------------------+
   |  my_website/   <-- root folder  |
   |    +-- index.html               |
   |    +-- about.html               |
   |    +-- css/                     |
   |    +-- js/                      |
   |    +-- images/                  |
   +---------------------------------+

Mini summary: The root folder holds everything for the website. It is the starting point.

Lesson 11: The Homepage and index.html

Definition: The homepage is the first page visitors see. In most websites, it is saved as "index.html."

Why it is important: Servers look for "index.html" by default. If the file is missing, the homepage does not show.

Simple explanation: Imagine a shop with a front door. If the front door is missing, customers cannot enter. The "index.html" file is the front door of a website.

Real-life example: When you visit "example.com," the server shows "index.html."

School example: When parents visit the school website, "index.html" shows first.

Home example: When relatives visit your family blog, "index.html" shows first.

Nigerian example: When customers visit an online shop, "index.html" shows first.

Illustration:

   index.html is the Homepage:
   +-------------------------------+
   |  website/                     |
   |    +-- index.html  <-- first! |
   |    +-- about.html             |
   |    +-- contact.html           |
   +-------------------------------+

Mini summary: "index.html" is the homepage. Servers look for it by default.

Lesson 12: Folder Structure and SEO

Definition: SEO stands for Search Engine Optimisation. It means making your website easy for search engines to find and rank.

Why it is important: Good folder structures and names help search engines understand your website.

Simple explanation: Imagine a library. If books are organised by topic and have clear titles, it is easy to find any book. Search engines work the same way. Clear folders and names help them find your website.

Real-life example: A blog uses folders like "recipes/jollof_rice.html" so Google understands the topic.

School example: The school uses "admission/forms.html" so parents find admission forms easily.

Home example: A family blog uses "photos/holiday_abuja.html" for clear structure.

Nigerian example: A business uses "products/ankara.html" so customers can find Ankara products easily.

Illustration:

   SEO-Friendly Structure:
   +-------------------------------+
   |  website/                     |
   |    +-- products/              |
   |    |    +-- ankara.html       |
   |    |    +-- lace.html         |
   |    +-- about/                 |
   |    |    +-- team.html         |
   +-------------------------------+
Good for SEO Bad for SEO
products/ankara.html p1.html
about/team.html about_final_new.html
images/ankara_blue.jpg IMG_3847.jpg

Mini summary: Clear folders and names help search engines find and rank your website.

Lesson 13: Folder Structure and Accessibility

Definition: Accessibility means making your website easy for everyone to use, including people with disabilities.

Why it is important: Clear file names and folder structures help screen readers and other tools work properly.

Simple explanation: Imagine a school with no ramps for wheelchairs. Some students cannot enter. Accessibility in websites is about making sure everyone can use them.

Real-life example: A website names images "school_building_entrance.jpg" so screen readers can describe them.

School example: The school website uses clear file names so visually impaired parents can navigate easily.

Home example: A family blog uses descriptive names so elderly relatives can find what they need.

Nigerian example: A business website uses clear names so customers with disabilities can shop easily.

Illustration:

   Accessible File Names:
   +-------------------------------+
   |  Good:                        |
   |    school_building.jpg        |
   |    student_reading.jpg        |
   +-------------------------------+
   |  Bad:                         |
   |    DSC_3847.jpg               |
   |    IMG_0923.jpg               |
   +-------------------------------+

Mini summary: Clear file names help accessibility tools work properly.

Lesson 14: Common Folder Structure Mistakes

Definition: Common mistakes are errors that people often make when organising folders.

Why it is important: Knowing these mistakes helps you avoid them.

Simple explanation: Imagine packing a suitcase. If you throw everything in without folding, it will be a mess. Folder mistakes are like that.

Real-life example: A developer puts all files in one folder. It becomes impossible to find anything.

School example: A student saves all assignments in one folder with random names.

Home example: A family saves all photos in one folder without subfolders.

Nigerian example: A trader saves all product photos in one folder without separating categories.

Illustration:

   Common Folder Mistakes:
   +-------------------------------+
   | 1. Everything in one folder   |
   | 2. No subfolders for images   |
   | 3. Duplicate folders          |
   | 4. Deeply nested folders      |
   | 5. Inconsistent folder names  |
   +-------------------------------+
Mistake Why It Is a Problem How to Fix It
Everything in one folder Hard to find files Create folders by type
No subfolders for images Images folder becomes cluttered Create subfolders by topic
Duplicate folders Confusion and wasted space Keep one copy of each folder
Deeply nested folders Hard to navigate Keep folders 2–3 levels deep
Inconsistent folder names Confusion Use the same naming style

Mini summary: Avoid common folder mistakes. Keep your folders simple and consistent.

Lesson 15: Putting It All Together

Definition: Putting it all together means designing a complete file naming and folder structure plan for a website.

Why it is important: A good plan prevents problems. It makes your website easier to build and maintain.

Simple explanation: Imagine you are building a house. Before you start, you draw a plan. Building a website needs a plan too. The plan includes file names and folder structure.

Real-life example: A web developer creates a plan before starting any website project.

School example: A student plans the folder structure for a school project.

Home example: A family plans the structure for a family blog.

Nigerian example: A trader plans the folder structure for an online shop.

Illustration:

   Complete Plan:
   +-------------------------------+
   | 1. Choose root folder name    |
   | 2. Create standard folders    |
   | 3. Create subfolders          |
   | 4. Name all files clearly     |
   | 5. Follow naming rules        |
   | 6. Document the structure     |
   +-------------------------------+

Mini summary: A complete plan includes root folder, standard folders, subfolders, and clear file names.


Key Vocabulary

Word Simple Definition
File Naming Giving files clear, useful names.
File Extension The letters after the dot in a file name.
Folder Structure The way folders are arranged inside each other.
Root Folder The top-level folder for a website.
Subfolder A folder inside another folder.
index.html The default homepage file.
SEO Search Engine Optimisation: making websites easy for search engines to find.
Accessibility Making websites easy for everyone to use.
Naming Convention A consistent way of naming files.
Directory Another word for folder.
Path The location of a file or folder.
Lowercase Small letters, like a, b, c.
Underscore The _ symbol used instead of spaces.
Special Character Symbols like !, #, %, &.
Nested Placed inside another folder.

Important Concepts

Concept 1: Names Matter

Clear file names help you, servers, browsers, and search engines find files.

Concept 2: Follow the Rules

Use lowercase, underscores, no spaces, no special characters.

Concept 3: Folders Organise Files

Folders keep files grouped and easy to find.

Concept 4: Standard Folders Work Best

Use css, js, images, and pages folders for every website.

Concept 5: index.html is the Homepage

Servers look for index.html by default.

Concept 6: Structure Helps SEO

Clear folders and names help search engines rank your website.

Concept 7: Structure Helps Accessibility

Clear names help screen readers and other tools work properly.

Concept 8: Plan Before You Build

Plan your folder structure and file names before starting a project.


Step-by-step Explanations

How to Name a File Properly

  1. Use lowercase letters.
  2. Use underscores instead of spaces.
  3. Be descriptive: say what the file is.
  4. Keep the name short.
  5. Add a date if useful.
  6. Use the correct extension.

How to Create a Folder Structure

  1. Create the root folder.
  2. Inside it, create folders: css, js, images, pages.
  3. Inside images, create subfolders if needed.
  4. Place index.html in the root folder.
  5. Place style files in the css folder.
  6. Place script files in the js folder.
  7. Place images in the images folder.

How to Fix a Bad File Name

  1. Right-click the file.
  2. Choose "Rename."
  3. Change spaces to underscores.
  4. Change uppercase to lowercase.
  5. Remove special characters.
  6. Make the name descriptive.
  7. Press Enter to save.

How to Move a File to the Right Folder

  1. Find the file.
  2. Right-click and choose "Cut."
  3. Open the correct folder.
  4. Right-click and choose "Paste."
  5. Check that the file is in the right place.

Real-life Examples

Example 1: A School Website

A school in Lagos uses folders: "admission," "events," and "staff." Files are named "admission_form_2025.pdf" and "event_sports_day.jpg."

Example 2: An Online Shop

A shop in Abuja uses folders: "products," "prices," and "reviews." Files are named "ankara_blue_front.jpg" and "price_list_2025.pdf."

Example 3: A News Website

A news website in Port Harcourt uses folders named by date: "2025_03_15." Files are named "headline.html" and "photo_01.jpg."

Example 4: A Family Blog

A family blog uses folders: "photos," "videos," and "stories." Files are named "birthday_ada_2025.jpg" and "story_holiday_abuja.html."


Nigerian Examples

Example 1: Balogun Market Trader

A trader at Balogun Market has folders for "ankara," "lace," and "shoes." Files are named "ankara_blue_dress_01.jpg" and "lace_gold_02.jpg."

Example 2: WAEC Student

A student in Ibadan has folders for each subject. Files are named "chemistry_notes_ch4.pdf" and "maths_practice_2025.docx."

Example 3: Youth Corper

A youth corper in Enugu has folders for "reports," "photos," and "forms." Files are named "report_march_2025.pdf."

Example 4: Small Business in Abuja

A small business owner has folders for "products," "customers," and "orders." Files are named "product_list_2025.xlsx."


Fun Examples Children Can Relate To

Example 1: Football Card Collection

You have folders for "barcelona," "chelsea," and "arsenal." Files are named "messi_barcelona.jpg" and "drogba_chelsea.jpg."

Example 2: Video Game Screenshots

You have folders for "wins," "losses," and "funny." Files are named "win_2025_03_15.jpg."

Example 3: School Projects

You have folders for "maths," "english," and "science." Files are named "maths_project_ch3.docx."

Example 4: Birthday Party Photos

You have folders for "photos," "videos," and "decorations." Files are named "birthday_ada_2025_01.jpg."


Everyday Examples

Situation Folder and Naming Skill
School work Folders by subject, files named by chapter
Family photos Folders by year or event, files named descriptively
Music collection Folders by artist, files named by song
Work documents Folders by project, files named with dates
Game saves Folders by game, files named by level

Parent Tips

  1. Show your child how to create folders on the computer.
  2. Practice naming files together.
  3. Encourage your child to use descriptive names.
  4. Show them how to rename a file.
  5. Practice creating subfolders for photos.
  6. Celebrate when they organise their school work neatly.
  7. Remind them to avoid spaces and special characters.
  8. Ask your child to explain what they learned. Teaching helps learning.
  9. Set a good example by organising your own files.
  10. Be patient. Good habits take time to build.

Interesting Facts

  • Some servers are case-sensitive, so "Logo.png" and "logo.png" are different files.
  • Search engines use file names to understand what images show.
  • The "index.html" rule has been used since the early days of the web.
  • Well-organised websites load faster.
  • Long file names can cause problems on some servers.
  • Special characters in file names can break links.
  • Good folder structures help teams work together.
  • Many websites use the same folder structure.

Did You Know?

  • Did you know that "index.html" is the default homepage file?
  • Did you know that spaces in file names can break websites?
  • Did you know that image file names help search engines?
  • Did you know that subfolders help organise large image collections?
  • Did you know that SEO depends partly on file names?
  • Did you know that accessibility tools use file names to help users?

Remember This

  • Good file names are clear, simple, and consistent.
  • Use lowercase, underscores, and no special characters.
  • File extensions tell the computer the file type.
  • Folder structures organise files into groups.
  • Every website needs css, js, images, and pages folders.
  • Subfolders help organise images.
  • index.html is the homepage.
  • Good structure helps SEO.
  • Good structure helps accessibility.
  • Plan before you build.

Common Mistakes

Mistake Why It Is a Problem How to Avoid It
Using spaces in file names Servers cannot read them properly Use underscores
Using uppercase letters Some servers treat them differently Use lowercase
Using vague names Files are hard to find Be descriptive
Ignoring extensions Files may not open Use the correct extension
Putting all files in one folder Clutter and confusion Use folders by type
Nesting folders too deeply Hard to navigate Keep 2–3 levels
Forgetting index.html Homepage does not load Always include index.html

Best Practices

  1. Use lowercase letters for all file names.
  2. Use underscores instead of spaces.
  3. Avoid special characters.
  4. Be descriptive in file names.
  5. Keep file names short.
  6. Include dates when useful.
  7. Use standard folders: css, js, images, pages.
  8. Create subfolders for images.
  9. Always include index.html.
  10. Plan your folder structure before starting.

ASCII Illustrations, Diagrams, Flowcharts, Timelines, and Tables

Illustration 1: File Naming Process

   Start
     |
     V
   Think of a clear name
     |
     V
   Use lowercase
     |
     V
   Replace spaces with underscores
     |
     V
   Remove special characters
     |
     V
   Add correct extension
     |
     V
   Save the file

Illustration 2: Standard Website Folder Structure

   website/
     +-- index.html
     +-- about.html
     +-- contact.html
     +-- css/
     |    +-- style.css
     +-- js/
     |    +-- script.js
     +-- images/
     |    +-- logo.png
     |    +-- banner.jpg
     +-- pages/
          +-- services.html

Illustration 3: Images Folder with Subfolders

   images/
     +-- school/
     |    +-- sports_day.jpg
     |    +-- graduation.jpg
     +-- family/
     |    +-- holiday_abuja.jpg
     |    +-- birthday_ada.jpg
     +-- city/
          +-- abuja_sunset.jpg

Illustration 4: Naming Flowchart

   New File
      |
      V
   Choose descriptive name
      |
      V
   Lowercase only
      |
      V
   Underscores not spaces
      |
      V
   No special characters
      |
      V
   Add extension
      |
      V
   Save to correct folder

Timeline: Learning File Naming and Structure

   Step 1: Why naming matters
      |
   Step 2: Naming rules
      |
   Step 3: File extensions
      |
   Step 4: Naming web pages
      |
   Step 5: Naming images
      |
   Step 6: Naming CSS and JS
      |
   Step 7: What is folder structure
      |
   Step 8: Main folders
      |
   Step 9: Subfolders
      |
   Step 10: Root folder
      |
   Step 11: index.html
      |
   Step 12: SEO
      |
   Step 13: Accessibility
      |
   Step 14: Common mistakes
      |
   Step 15: Putting it together

Table: Naming Rules Summary

Rule Example
Lowercase logo.png
Underscores about_us.html
No spaces my_photo.jpg
No special characters photo.jpg
Descriptive abuja_sunset.jpg
Short home.html
Include date report_2025_03.pdf

Table: Standard Website Folders

Folder Purpose Example Files
Root Top-level files index.html, about.html
css/ Styles style.css, school.css
js/ Scripts script.js, menu.js
images/ Pictures logo.png, banner.jpg
pages/ Other HTML pages contact.html, services.html

Summary After Every Lesson

Lesson 1 Summary

File names matter. They help you, servers, browsers, and search engines understand what is inside.

Lesson 2 Summary

Follow simple rules: lowercase, underscores, no spaces, no special characters, be descriptive, keep it short.

Lesson 3 Summary

The extension tells the computer what type of file it is. Always use the correct extension.

Lesson 4 Summary

Web page names should be short, clear, and describe the page content.

Lesson 5 Summary

Image names should describe what the image shows. This helps search engines and helps you find images.

Lesson 6 Summary

CSS and JavaScript file names should be short, lowercase, and descriptive.

Lesson 7 Summary

A folder structure organises files into folders. Each type of file has its own folder.

Lesson 8 Summary

Every website needs at least: root, css, js, images, and pages folders.

Lesson 9 Summary

Subfolders group images into smaller, more organised sets.

Lesson 10 Summary

The root folder holds everything for the website. It is the starting point.

Lesson 11 Summary

"index.html" is the homepage. Servers look for it by default.

Lesson 12 Summary

Clear folders and names help search engines find and rank your website.

Lesson 13 Summary

Clear file names help accessibility tools work properly.

Lesson 14 Summary

Avoid common folder mistakes. Keep your folders simple and consistent.

Lesson 15 Summary

A complete plan includes root folder, standard folders, subfolders, and clear file names.


End-of-Module Summary

In this module, you learned about file naming and folder structure. You learned that file naming is the practice of giving files clear, consistent, and useful names.

You learned why file naming matters. Good names help you find files quickly. They help servers, browsers, and search engines understand your files.

You learned the rules for naming files: use lowercase letters, use underscores instead of spaces, avoid special characters, be descriptive, keep names short, and include dates if useful.

You learned about file extensions. The extension tells the computer what type of file it is. Examples include .html, .css, .js, .jpg, and .pdf.

You learned how to name web pages, images, CSS files, and JavaScript files. Each type has its own naming conventions.

You learned about folder structure. A folder structure is the way folders are arranged inside each other. Every website needs standard folders: root, css, js, images, and pages.

You learned about subfolders. Subfolders organise images into smaller groups. You learned about the root folder and index.html, the default homepage file.

You learned how folder structure affects SEO and accessibility. Clear folders and names help search engines rank your website and help accessibility tools work properly.

You learned about common folder mistakes and how to avoid them. You learned best practices for file naming and folder structure.

Finally, you learned how to put it all together. A complete plan includes root folder, standard folders, subfolders, and clear file names.


Frequently Asked Questions (10 Questions)

  1. Why is file naming important?
    Good names help you find files quickly. They help servers, browsers, and search engines understand your files.
  2. What are the rules for naming files?
    Use lowercase, underscores, no spaces, no special characters, be descriptive, keep it short.
  3. What is a file extension?
    The letters after the dot in a file name. It tells the computer what type of file it is.
  4. How should I name web pages?
    Use short, clear names like "about.html" or "contact.html."
  5. How should I name images?
    Describe what the image shows, like "abuja_sunset.jpg."
  6. What is a folder structure?
    The way folders are arranged inside each other to organise files.
  7. What folders does every website need?
    Root, css, js, images, and pages folders.
  8. What is index.html?
    The default homepage file. Servers look for it by default.
  9. How does folder structure affect SEO?
    Clear folders and names help search engines understand and rank your website.
  10. How does folder structure affect accessibility?
    Clear names help screen readers and other tools work properly.

Matching Exercises

Match the word on the left with the correct definition on the right.

Word Definition
1. File Naming A. The default homepage file
2. File Extension B. Giving files clear, useful names
3. Folder Structure C. The letters after the dot in a file name
4. Root Folder D. The way folders are arranged inside each other
5. index.html E. A folder inside another folder
6. Subfolder F. The top-level folder for a website

Answers: 1‑B, 2‑C, 3‑D, 4‑F, 5‑A, 6‑E


Scenario-based Exercises

Scenario 1: The School Website

You are building a school website. What folders will you create? What will you name the homepage?

Scenario 2: The Photo Gallery

You have 200 photos to organise. How will you structure your images folder?

Scenario 3: The Online Shop

You are building an online shop. What folders will you create for products?

Scenario 4: The Personal Blog

You are building a personal blog. What will you name your pages?

Scenario 5: The News Website

You are building a news website. How will you organise articles by date?


Group Activity

Activity: Folder Structure Team Challenge

Goal: Work in groups of 3‑4 to design a folder structure and naming plan.

Steps:

  1. Form groups of 3‑4 students.
  2. Choose a type of website: school, shop, blog, portfolio.
  3. Design the folder structure.
  4. List at least 10 files with clear names.
  5. Explain your naming choices.
  6. Present your plan to the class.

Discussion: Which group's structure was clearest? Which group's names were best? Why?


Individual Activity

Activity: My Folder Structure Plan

Goal: Practice designing a folder structure on your own.

Steps:

  1. Choose a topic for your website.
  2. Draw a folder structure on paper.
  3. Name five files clearly.
  4. Explain why you chose those names.
  5. Share your plan with a parent or teacher.

Mini Project

Project: My Website Plan

Goal: Create a complete plan for a personal website.

Steps:

  1. Choose a topic.
  2. List five pages.
  3. Design a folder structure.
  4. Name each file clearly.
  5. List ten images with clear names.
  6. Write a paragraph explaining your plan.
  7. Share your plan with a parent or teacher.

Deliverable: A written plan with folder structure, page list, and clear file names.


Practical Assignment

Assignment: Folder and Naming Challenge

Instructions: Complete the following tasks on your computer. Write down what you did.

  1. Create a root folder called "my_website."
  2. Inside it, create folders: css, js, images, pages.
  3. Inside images, create two subfolders: "school" and "family."
  4. Create a blank file called "index.html."
  5. Create a blank file called "style.css" inside css.
  6. Create a blank file called "script.js" inside js.
  7. Create a blank file called "logo.png" inside images.
  8. Rename any file with a bad name.
  9. Take a screenshot of your folder structure.

Submission: Share your folder structure screenshot and a short report of what you learned.


Key Takeaways

  • Good file names are clear, simple, and consistent.
  • Use lowercase, underscores, and no special characters.
  • File extensions tell the computer the file type.
  • Folder structures organise files into groups.
  • Every website needs css, js, images, and pages folders.
  • Subfolders help organise images.
  • index.html is the homepage.
  • Good structure helps SEO.
  • Good structure helps accessibility.
  • Plan before you build.

Classroom Discussion Questions

  1. Why is file naming important?
  2. What are three rules for naming files?
  3. What is a file extension?
  4. How should you name web pages?
  5. How should you name images?
  6. What is a folder structure?
  7. What folders does every website need?
  8. What is index.html?
  9. How does folder structure affect SEO?
  10. How does folder structure affect accessibility?

Preparation for the Next Module

In the next module, you will learn about local, cloud, and server storage. You will learn how to store files on your computer, in the cloud, and on a web server. You will also learn how to back up your files and choose the right storage option.

Before the next module, please make sure you can:

  • Explain why file naming matters.
  • List the rules for naming files.
  • Recognise bad file names and fix them.
  • Explain what a folder structure is.
  • Design a simple folder structure.
  • Identify the main folders every website needs.
  • Explain how folder structure affects SEO.
  • Explain how folder structure affects accessibility.

If you can do these things, you are ready for Module Three: Local, Cloud, and Server Storage.

See you in the next module, young explorer! Keep practising and stay curious.


End of Module Two

πŸ† Get Certified

πŸ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (₦2,000 or 20,000 coins), and get a verified certificate with your name on it.

πŸŽ“ Sign Up to Get Certified
πŸ› οΈ Practice Tools
Hands-on simulators & labs - subscription required.
β†’
🎯 Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
β†’