Bird
Raised Fist0
Bootsrapmarkup~5 mins

Bootstrap folder structure - Cheat Sheet & Quick Revision

Choose your learning style10 modes available
Recall & Review
beginner
What is the main purpose of the css folder in a Bootstrap project?
The css folder holds all the CSS files, including Bootstrap's core styles and any custom styles you add to change the look of your site.
Click to reveal answer
beginner
What files are typically found inside the js folder in Bootstrap?
The js folder contains JavaScript files that add interactive features, like modals and dropdowns, including Bootstrap's JavaScript plugins and sometimes custom scripts.
Click to reveal answer
intermediate
Why do we have a fonts or webfonts folder in Bootstrap projects?
This folder stores font files used by Bootstrap or custom fonts, ensuring text displays correctly and consistently across browsers.
Click to reveal answer
beginner
What is the role of the img folder in a Bootstrap folder structure?
The img folder holds all images used on the website, like logos, icons, and photos, keeping them organized and easy to find.
Click to reveal answer
intermediate
Where do you place your custom Bootstrap theme files in the folder structure?
Custom theme files usually go inside the css folder, often named something like custom.css, so they load after Bootstrap's default styles.
Click to reveal answer
Which folder in a Bootstrap project typically contains the JavaScript files?
Aimg
Bcss
Cfonts
Djs
Where should you put your custom CSS files in a Bootstrap folder structure?
Acss folder
Bfonts folder
Cimg folder
Djs folder
What is the main content of the img folder?
AJavaScript files
BImage files like logos and icons
CFont files
DCSS files
Why do Bootstrap projects include a fonts or webfonts folder?
ATo hold image files
BTo store JavaScript plugins
CTo keep font files for consistent text display
DTo save CSS files
Which folder would you check first if Bootstrap's interactive components are not working?
Ajs
Bcss
Cimg
Dfonts
Describe the typical folder structure of a Bootstrap project and the purpose of each main folder.
Think about where styles, scripts, images, and fonts are stored.
You got /5 concepts.
    Explain why organizing files into folders like css, js, img, and fonts is helpful in a Bootstrap project.
    Consider how neat folders help both developers and browsers.
    You got /4 concepts.

      Practice

      (1/5)
      1. What is the main purpose of organizing files into folders in a Bootstrap project?
      easy
      A. To make the website load slower
      B. To hide files from the browser
      C. To keep CSS, JavaScript, and images separate for easy management
      D. To make the project folder look bigger

      Solution

      1. Step 1: Understand folder organization

        Organizing files into folders helps keep CSS, JavaScript, and images separate and easy to find.
      2. Step 2: Recognize benefits

        This separation makes managing and updating the website easier and helps it load properly.
      3. Final Answer:

        To keep CSS, JavaScript, and images separate for easy management -> Option C
      4. Quick Check:

        Folder organization = Easy management [OK]
      Hint: Folders separate file types for clarity and ease [OK]
      Common Mistakes:
      • Thinking folders slow down the website
      • Believing folders hide files from browsers
      • Assuming folder size affects project size
      2. Which folder name is commonly used to store Bootstrap CSS files in a project?
      easy
      A. fonts
      B. js
      C. img
      D. css

      Solution

      1. Step 1: Identify folder purpose

        The css folder is used to store stylesheets including Bootstrap CSS files.
      2. Step 2: Match folder names

        js is for JavaScript, img for images, and fonts for font files.
      3. Final Answer:

        css -> Option D
      4. Quick Check:

        Bootstrap CSS files go in css folder [OK]
      Hint: CSS files go in the css folder [OK]
      Common Mistakes:
      • Putting CSS files in js folder
      • Using img folder for stylesheets
      • Confusing fonts folder with CSS
      3. Given this folder structure:
      project/
      ├── css/
      │ └── bootstrap.min.css
      ├── js/
      │ └── bootstrap.bundle.min.js
      └── img/
      └── logo.png

      Which file path should you use in your HTML to link the Bootstrap JavaScript file?
      medium
      A. js/bootstrap.bundle.min.js
      B. img/logo.png
      C. css/bootstrap.min.css
      D. bootstrap.bundle.min.js

      Solution

      1. Step 1: Locate JavaScript file

        The Bootstrap JavaScript file is inside the js folder named bootstrap.bundle.min.js.
      2. Step 2: Choose correct relative path

        To link it in HTML, use js/bootstrap.bundle.min.js as the path.
      3. Final Answer:

        js/bootstrap.bundle.min.js -> Option A
      4. Quick Check:

        JS file path = js/bootstrap.bundle.min.js [OK]
      Hint: JS files are in js folder, use js/filename.js [OK]
      Common Mistakes:
      • Using css folder path for JS file
      • Using image folder path for JS file
      • Omitting folder name in path
      4. You included Bootstrap CSS in your HTML as <link href='css/bootstrap.min.css'> but styles are not applied. What is the likely folder structure mistake?
      medium
      A. The CSS file is missing the .css extension
      B. The CSS file is in the root folder, not inside css
      C. The CSS file is inside the img folder, not css
      D. The CSS file is inside the js folder, not css

      Solution

      1. Step 1: Check file path in link tag

        The link uses css/bootstrap.min.css, so the CSS file must be inside the css folder.
      2. Step 2: Identify mismatch

        If the CSS file is actually in the root folder, the path is wrong and styles won't load.
      3. Final Answer:

        The CSS file is in the root folder, not inside css -> Option B
      4. Quick Check:

        File location must match path in HTML [OK]
      Hint: Match file location with path in HTML link [OK]
      Common Mistakes:
      • Putting CSS in js folder
      • Forgetting .css extension
      • Putting CSS in img folder
      5. You want to add custom styles to your Bootstrap project without changing the original Bootstrap files. Which folder structure is best practice?
      hard
      A. Create a new css/custom.css file and link it after Bootstrap CSS
      B. Put custom CSS inside the img folder
      C. Add custom styles inside the js folder
      D. Put custom CSS inside the existing css/bootstrap.min.css file

      Solution

      1. Step 1: Avoid modifying Bootstrap files

        Modifying bootstrap.min.css directly can cause problems when updating Bootstrap.
      2. Step 2: Use separate custom CSS file

        Creating css/custom.css and linking it after Bootstrap CSS allows safe customizations.
      3. Final Answer:

        Create a new css/custom.css file and link it after Bootstrap CSS -> Option A
      4. Quick Check:

        Custom styles in separate CSS file after Bootstrap [OK]
      Hint: Keep Bootstrap files untouched; add custom CSS separately [OK]
      Common Mistakes:
      • Editing Bootstrap's original CSS file
      • Placing CSS in js or img folders
      • Not linking custom CSS after Bootstrap CSS
      Recommended

      Ready to prove it?

      Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

      10 questions~5 mineasy hard