0
0
Tailwindmarkup~10 mins

Tailwind installation and setup - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install Tailwind CSS using npm.

Tailwind
npm install [1]
Drag options to blanks, or click blank then click option'
Atailwindcss
Bbootstrap
Cjquery
Dreact
Attempts:
3 left
💡 Hint
Common Mistakes
Using unrelated package names like bootstrap or jquery.
Forgetting to use npm before install.
2fill in blank
medium

Complete the code to initialize Tailwind CSS configuration file.

Tailwind
npx tailwindcss [1]
Drag options to blanks, or click blank then click option'
Acreate
Bbuild
Cinit
D-o
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'init'.
Confusing build commands with config initialization.
3fill in blank
hard

Fix the error in the Tailwind CSS input file path in the build script.

Tailwind
"build-css": "tailwindcss -i [1] -o ./dist/output.css --watch"
Drag options to blanks, or click blank then click option'
A./src/styles.css
B./dist/styles.css
C./styles/output.css
D./public/index.html
Attempts:
3 left
💡 Hint
Common Mistakes
Using output or dist folder as input file.
Using HTML file as input.
4fill in blank
hard

Fill both blanks to add Tailwind directives in your CSS file.

Tailwind
@[1] base;
@[2] components;
Drag options to blanks, or click blank then click option'
Atailwind
Bimport
Capply
Duse
Attempts:
3 left
💡 Hint
Common Mistakes
Using '@import' or '@apply' instead of '@tailwind'.
Mixing different directives in these lines.
5fill in blank
hard

Fill all three blanks to configure Tailwind to scan your HTML and JS files.

Tailwind
module.exports = {
  content: ["./[1]/**/*.{html,[2]", "./[3]/**/*.{js}"]
};
Drag options to blanks, or click blank then click option'
Asrc
Bjs
Cpublic
Dcss
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'css' folder for content scanning.
Mixing file extensions incorrectly.