Complete the code to set the navbar text color suitable for a dark background.
<nav class="navbar navbar-expand-lg navbar-[1]"> <a class="navbar-brand" href="#">Brand</a> </nav>
navbar-light which is for light backgrounds.The class navbar-dark sets the navbar text color suitable for dark backgrounds. Combined with bg-dark it creates a dark navbar.
Complete the code to set the navbar background color to primary blue.
<nav class="navbar navbar-expand-lg bg-[1]"> <a class="navbar-brand" href="#">Brand</a> </nav>
bg-dark which is blackish.bg-light which is very light.The class bg-primary sets the background color to Bootstrap's primary blue color.
Fix the error in the navbar class to make the text readable on a light background.
<nav class="navbar navbar-expand-lg navbar-[1] bg-light"> <a class="navbar-brand" href="#">Brand</a> </nav>
navbar-dark which makes text hard to read on light backgrounds.For a light background, use navbar-light so the text is dark and readable.
Fill both blanks to create a navbar with dark text on a warning background.
<nav class="navbar navbar-expand-lg navbar-[1] bg-[2]"> <a class="navbar-brand" href="#">Brand</a> </nav>
navbar-dark with bg-warning which makes text hard to read.Use navbar-light for dark text and bg-warning for a yellow background.
Fill all three blanks to create a navbar with uppercase brand text, light text color, and a success background.
<nav class="navbar navbar-expand-lg navbar-[1] bg-[2]"> <a class="navbar-brand text-[3]" href="#">Brand</a> </nav>
navbar-light which makes text dark and hard to read on green.text-uppercase for uppercase text.Use navbar-dark for light text color, bg-success for green background, and text-uppercase to make brand text uppercase.