<h1>Different Shapes With Html and CSS</h1>
<h2>Square</h2>
<div id="square"></div>
<br>
<h2>Reactangle</h2>
<div id="rectangle"></div>
<br>
<h2>Circle</h2>
<div id="circle"></div>
<br>
<h2>Oval</h2>
<div id="oval"></div>
<br>
<h2>Traingle</h2>
<div id="triangle"></div>
<br>
<h2>Trapezium</h2>
<div id="trapezium"></div>
<br>
<h2>Parallelogram</div>
<div id="parallelogram"></div>
#square {

  width: 100px;

  height: 100px;

  background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%);

}


#rectangle {

  width: 200px;

  height: 100px;

  background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%);

}

#circle {

  width: 100px;

  height: 100px;

  background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%);

  border-radius: 50%;

}

#oval {

      width: 200px;

      height: 100px;

      background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%);

      border-radius: 100px / 50px;

    }

#triangle{

      width: 0;

      height: 0;

      border-left: 50px solid transparent;

      border-right: 50px solid transparent;

      border-bottom: 100px solid #ff99cc;
  

    }




#trapezium {

border-bottom: 50px solid #ff99cc;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  height: 0;
  width: 80px;
}

#parallelogram {

  width: 100px;

  height: 50px;

  transform: skew(20deg);

  background: #ff99cc;

}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.