0
0
Bootsrapmarkup~10 mins

Navbar color schemes in Bootsrap - Interactive Code Practice

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

Complete the code to set the navbar text color suitable for a dark background.

Bootsrap
<nav class="navbar navbar-expand-lg navbar-[1]">
  <a class="navbar-brand" href="#">Brand</a>
</nav>
Drag options to blanks, or click blank then click option'
Asuccess
Bprimary
Cdark
Dlight
Attempts:
3 left
💡 Hint
Common Mistakes
Using navbar-light which is for light backgrounds.
Confusing background color class with text color class.
2fill in blank
medium

Complete the code to set the navbar background color to primary blue.

Bootsrap
<nav class="navbar navbar-expand-lg bg-[1]">
  <a class="navbar-brand" href="#">Brand</a>
</nav>
Drag options to blanks, or click blank then click option'
Alight
Bdark
Cprimary
Dwarning
Attempts:
3 left
💡 Hint
Common Mistakes
Using bg-dark which is blackish.
Using bg-light which is very light.
3fill in blank
hard

Fix the error in the navbar class to make the text readable on a light background.

Bootsrap
<nav class="navbar navbar-expand-lg navbar-[1] bg-light">
  <a class="navbar-brand" href="#">Brand</a>
</nav>
Drag options to blanks, or click blank then click option'
Adark
Bprimary
Cwarning
Dlight
Attempts:
3 left
💡 Hint
Common Mistakes
Using navbar-dark which makes text hard to read on light backgrounds.
Omitting the navbar text color class.
4fill in blank
hard

Fill both blanks to create a navbar with dark text on a warning background.

Bootsrap
<nav class="navbar navbar-expand-lg navbar-[1] bg-[2]">
  <a class="navbar-brand" href="#">Brand</a>
</nav>
Drag options to blanks, or click blank then click option'
Alight
Bdark
Cwarning
Dprimary
Attempts:
3 left
💡 Hint
Common Mistakes
Using navbar-dark with bg-warning which makes text hard to read.
Mixing up background and text color classes.
5fill in blank
hard

Fill all three blanks to create a navbar with uppercase brand text, light text color, and a success background.

Bootsrap
<nav class="navbar navbar-expand-lg navbar-[1] bg-[2]">
  <a class="navbar-brand text-[3]" href="#">Brand</a>
</nav>
Drag options to blanks, or click blank then click option'
Alight
Bdark
Csuccess
Duppercase
Attempts:
3 left
💡 Hint
Common Mistakes
Using navbar-light which makes text dark and hard to read on green.
Forgetting to add text-uppercase for uppercase text.