Bootstrap MCQs – Bootstrap Tables

21.) Which Bootstrap class is used to align text in the middle of a table cell vertically?

A) .vertical-align
B) .table-align-center
C) .text-middle
D) .align-middle

Answer: Option D

Explanation: The .align-middle class vertically centers the text inside a table cell.

22.) How do you make text in a table cell bold using Bootstrap?

A) .fw-bold
B) .bold-text
C) .table-bold
D) .text-bold

Answer: Option A

Explanation: The .fw-bold class makes the text bold.

23.) How do you align the table text to the left in Bootstrap?

A) .align-left
B) .table-text-left
C) .text-left
D) .left-align

Answer: Option C

Explanation: The .text-left class ensures that table content aligns to the left.

24.) What Bootstrap class applies a light-colored header to a table?

A) .table-light-header
B) .thead-light
C) .table-header-light
D) .thead-primary

Answer: Option B

Explanation: The .thead-light class makes the table header light-colored with dark text.

25.) Which class is used to make a table header bold?

A) .fw-bold
B) .table-bold-header
C) .bold-text-header
D) .header-bold

Answer: Option A

Explanation: The .fw-bold class makes the text bold, useful for table headers.

Leave a Reply

Your email address will not be published. Required fields are marked *