<div class="square"></div>
.square {
  width: 50%;
  padding-bottom: 50%;
  background-color: teal; 
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.