Source Code: (back to article)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Tabs</title>
<style>
.tabs {
display: flex;
gap: 10px;
}

.tab-button {
padding: 10px 20px;
cursor: pointer;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 5px;
}

.tab-button.active {
background-color: #fff;
border-bottom: 2px solid #000;
}

.tab-content {
display: none;
margin-top: 20px;
}

.tab-content.active {
display: block;
}
</style>
</head>
<body>