<input type="checkbox" class="toggle">
<div class="element">
  This content will be shown or hidden.
</div>
.element {
  display: none;
}

.toggle:checked + .element {
  display: block;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.