Have you failed a job interview?
Send us your job interview questions and get correct answers.

How do you style a table using Bootstrap?

Experience Level: Junior
Tags: Bootstrap 4

Answer

In order to create a table, use standard html tags <table>, <tr>, <th> and <td>. Then add a class table to the <table> tag.

Bootstrap table
<table class="table">
  <tr>
    <th>ID</th>
	<th>Name</th>
  </tr>
  <tr>
    <td>11</td>
    <td>Peter</td>
  </tr>
  <tr>
    <td>12</td>
    <td>Jane</td>
  </tr>
</table>

Comments

No Comments Yet.
Be the first to tell us what you think.
Bootstrap for beginners
Bootstrap for beginners

Are you learning Bootstrap ? Try our test we designed to help you progress faster.

Test yourself