<body>
<form>
  <div class="toggle-buttons">
    <label>
	  <input type="radio" name="radio-1" checked>
      <span class="button">HTML</span>
    </label>
    <label>
      <input type="radio" name="radio-1">
      <span class="button">CSS</span>
    </label>
    <label>
      <input type="radio" name="radio-1">
      <span class="button">JS</span>
    </label>
    <label>
      <input type="radio" name="radio-1" disabled>
      <span class="button">PHP</span>
    </label>
  </div>
</form>
</body>
body {
  box-sizing: border-box;
  margin: 0;
  font: "Meiryo UI", sans-serif;
}

form {
  margin: 10px;
  padding: 10px;
}

label {
  font: inherit;
}

input[type=button].button,
button.button {
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  font: inherit;
}

.button {
  display: inline-block;
  width: 50px;
  padding: .5em 1em;
  border-radius: 4px;
  text-align: center;
  color: #eff;
  background-color: #678;
  border-bottom: 1px solid #666;
  cursor: pointer;
}

.button:hover {
  background-color: #567;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .6;
  color: #def;
}

.toggle-buttons {
  display: flex;
}

.toggle-buttons label {
  display: flex;
  position: relative;
}

.toggle-buttons [type=radio]
 {
  -webkit-appearance: none;
  -moz-appearance: none;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* appearance: none for IE11 */
_:-ms-lang(x)::-ms-backdrop, .toggle-buttons [type=radio] {
  visibility: hidden;
}

.toggle-buttons .button {
  z-index: 1;
}

.toggle-buttons :not(:first-child) .button {
  border-left: 1px solid #567;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.toggle-buttons :not(:last-child) .button {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.toggle-buttons :checked + .button {
  background-color: #345;
  border-bottom: 1px solid #333;
}

.toggle-buttons :disabled + .button {
  cursor: not-allowed;
  opacity: .6;
  color: #def;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js