<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Bootstrap Responsif Tabel</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<style>
    .bs-example{
    	margin: 20px;
    }
</style>
</head>
<body>
<div class="bs-example">
    <div class="table-responsive"> 
        <table class="table">
            <thead>
                <tr>
                    <th>Baris</th>
                    <th>Nama Depan</th>
                    <th>Nama Belakang</th>
                    <th>Email</th>
                    <th>Biography</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>1</td>
                    <td>Budi</td>
                    <td>Santoso</td>
                    <td>[email protected]</td>
                    <td>Lorem ipsum dolor sit amet...</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Johan</td>
                    <td>Sirup</td>
                    <td>[email protected]</td>
                    <td>Vestibulum consectetur scelerisque...</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Dudi</td>
                    <td>Jago</td>
                    <td>[email protected]</td>
                    <td>Integer pulvinar leo id risus...</td>
                </tr>
            </tbody>
        </table>
    </div>    
</div>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.