Lesson 2 Flashcards

(33 cards)

1
Q

are created with the .alert class, followed by one of the contextual classes

A

Alert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the alert classes?

A

.alert-success
.alert-info
.alert-warning
.alert-danger
.alert-primary
.alert-secondary
.alert-light
.alert-dark.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

All textual < input > and < textarea > elements with class _______ get proper form styling.

A

.form-control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

we add a __________ class to each label element to ensure correct padding.

A

.form-label

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

__________ have different markup. They are wrapped around a container element with .form-check, and labels have a class of .form-check-label, while checkboxes and radio buttons use .form-check-input.

A

Checkboxes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

If you want your form elements to appear side by side, use _____ and _____

A

.row and .col

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

You can change the size of .form-control inputs with .form-control-lg or .form-control-sm.

A

Form Control Size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

are used if you want to allow the user to pick from multiple options.

A

Select Menus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

To style a _______ in Bootstrap 5, add the .form-select class to the < select > element:

A

Select Menu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Use the .form-select-lg or .form-select-sm class to change the size of the select menu:

A

Select Menu Size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Bootstrap 5 provides different styles of buttons.

A

Bootstrap Buttons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The button classes can be used on < a >, < button >, or < input > elements.

A

Bootstrap Buttons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Bootstrap 5 also provides eight outline/bordered buttons.

A

Boostrap Button Outline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Move the mouse over them to see an additional “hover” effect.

A

Boostrap Button Outline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Use the ________ for large buttons

A

.btn-lg class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

for small buttons

A

.btn-sm class

17
Q

can be set to an active (appear pressed) or a disabled (unclickable) state.

18
Q

The class _____ makes a button appear pressed

19
Q

the ___________ makes a button unclickable.

20
Q

Note that < a > elements do not support the _________ and must therefore use the .disabled class to make it visually appear disabled.

A

disabled attribute

21
Q

A basic Bootstrap 5 ______ has a light padding and horizontal dividers.

22
Q

The _________ adds basic styling to a table:

23
Q

The _________ adds zebra-stripes to a table:

A

.table-striped class

24
Q

The __________ adds borders on all sides of the table and cells

A

.table-bordered class

25
The _______ adds a hover effect (grey background color) on table rows:
.table-hover class
26
The ________ removes borders from the table
.table-borderless class
27
is a navigation header that is placed at the top of the page.
Navigation Bar
28
With Bootstrap, a ________can extend or collapse, depending on the screen size.
Navigation Bar
29
A standard _________ is created with the **.navbar class**, followed by a responsive collapsing class: **.navbar-expand-xxl | xl | lg | md | sm** (stacks the navbar vertically on xxlarge, extra large, large, medium or small screens).
Navigation Bar
30
To add links inside the navbar, use either an _______ element (or a
) with **class="navbar-nav"**. Then add
  • elements with a .nav-item class followed by an **< a >** element with a **.nav-link class**
    31
    are useful when you want to hide and show large amount of content.
    Collapsible
    32
    The ________ indicates a collapsible element (a **< div >** in our example); this is the content that will be shown or hidden with a click of a button.
    .collapse class
    33
    To control (show/hide) the ________ content, add the **data-bs-toggle="collapse"** attribute to an **< a >** or a **< button >**element. Then add the **data-bs-target="#id"** attribute to connect the button with the collapsible content **(
    )**.
    Collapsible