A. Container class should be 'container-fluid' instead
B. Button class 'btn-primary' is misspelled
C. Missing closing tag for <button>
D. Bootstrap CSS file path is likely incorrect or missing CDN link
Solution
Step 1: Check Bootstrap CSS inclusion
The link uses 'bootstrap.min.css' without a full path or CDN, which may cause the file not to load if not locally present.
Step 2: Verify other elements
Button class spelling is correct, button tag is properly closed, and 'container' is valid Bootstrap class.
Final Answer:
Bootstrap CSS file path is likely incorrect or missing CDN link -> Option D
Quick Check:
Missing or wrong CSS link breaks Bootstrap styles [OK]
Hint: Always use full CDN URL or correct local path for Bootstrap CSS [OK]
Common Mistakes:
Assuming local CSS file always exists
Confusing container and container-fluid classes
Overlooking missing or wrong file paths
5. You want to create a simple Bootstrap page with a navigation bar and a button below it. Which of the following code snippets correctly sets up the basic Bootstrap page structure including CSS and JS from CDN?