Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Bootstrap Recap

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

What is the correct way to add a default-styled button to an <a> tag?

a)

<a href="#" class="btn btn-default">Button</a>

b)

<a href="#" class="btn-default">Button</a>

c)

<a href="#" class="btn default">Button</a>

d)

<a href="#" class="btn">Button</a>

2.

Which of the following will correctly display a page header with subtext?

a)

<h1>

This is the header <small> This is the subtext </small>

</h1>

b)

<div>

<h1>

This is the header <small> This is the subtext </small>

</h1>

</div>

c)

<div class="page-header">

<h1>

This is the header <small> This is the subtext </small>

</h1>

</div>

d)

<page-header>

<h1>

This is the header <small> This is the subtext </small>

</h1>

</page-header>

3.

What is the difference between .container and .container-fluid?

a)

.container-fluid keeps margins to the left and right of the content, while .container fills the entire width of the window.

b)

.container-fluid is responsive to the window size, while container creates a fixed width that never changes, regardless of window size.

c)

.container-fluid constantly updates to fit the width of the window, while .container will update occasionally as the window is resized

d)

.container should be used in headers, while .container-fluid is used for p tags

4.

True or False: If you use Bootstrap’s framework for your site, you can’t add your own CSS rules.

a)

True

b)

False

5.

How many columns fit in a single row in the Bootstrap grid system?

a)

3

b)

5

c)

12

d)

6

6.

What is the smallest device that will display these columns side by side?

a)

Desktop

b)

Tablet

c)

Laptop

d)

Smart Phone

7.

True or False: It is impossible to have more than one jumbotron on a given page

a)

True

b)

False

8.

Which of the following creates a responsive jumbotron on your website?

a)

<jumbotron>

<h1>This text will be in a jumbotron</h1>

</jumbotron>

b)

<div class="container">

<jumbotron>

<h1>This text will be in a jumbotron</h>

</jumbotron>

</div>

c)

<div class="container">

<div class="jumbotron">

<h1>This text will be in a jumbotron</h>

</div>

</div>

d)

<div class="jumbotron responsive">

<h1>This text will be in a jumbotron</h1>

</div>