Crypto Table Code (HTML, CSS, JS)
HTML Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crypto Table</title>
<link rel="stylesheet" href="[Link]">
</head>
<body>
<div class="table-container">
<table>
<thead>
<tr>
<th>Logo</th>
<th>Name</th>
<th>Symbol</th>
<th>Price</th>
<th>Change</th>
<th>Market Cap</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="[Link] alt="BCH"></td>
<td>Bitcoin Cash</td>
<td>BCH</td>
<td>$333.87522000360303</td>
<td class="negative">-3.03%</td>
<td>6387500349</td>
</tr>
<tr>
<td><img src="[Link] alt="BGB"></td>
<td>Bitget Token</td>
<td>BGB</td>
<td>$4.431177569445275</td>
<td class="negative">-0.43%</td>
<td>5317413083</td>
</tr>
<tr>
<td><img src="[Link] alt="WBT"></td>
<td>WhiteBIT Coin</td>
<td>WBT</td>
<td>$28.854844168083797</td>
<td class="negative">-0.68%</td>
<td>3176896471</td>
</tr>
<tr>
<td><img src="[Link] alt="TAO"></td>
<td>Bittensor</td>
<td>TAO</td>
<td>$250.32315527314682</td>
<td class="negative">-3.41%</td>
<td>2116823719</td>
</tr>
</tbody>
</table>
</div>
<script src="[Link]"></script>
</body>
</html>
CSS Code
body {
font-family: Arial, sans-serif;
background: #f9f9f9;
margin: 0;
padding: 30px;
}
.table-container {
width: 90%;
margin: auto;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
background: #fff;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
thead {
background: #f1f1f1;
}
th, td {
padding: 12px 16px;
text-align: center;
border-bottom: 1px solid #ddd;
}
td img {
width: 32px;
height: 32px;
}
.negative {
color: red;
font-weight: bold;
}
tr:hover {
background: #f9f9f9;
}
JavaScript Code
// Example: highlight biggest drop dynamically
[Link]("DOMContentLoaded", () => {
const changes = [Link]("[Link]");
let minChange = null;
let minElement = null;
[Link](td => {
const value = parseFloat([Link]("%", ""));
if (minChange === null || value < minChange) {
minChange = value;
minElement = td;
}
});
if (minElement) {
[Link] = "#ffe0e0";
}
});