CSS - Square
This is an example of CSS for a square.
This HTML code is used to draw a square, which is a shape element, with the tag having the class name "square".
<div class="square"></div>
This CSS code sets the style for a square.
It specifies "width" and "height" as "300px" each and sets the "background" as "royalblue" for the background color.
.square {
width: 300px;
height: 300px;
background: royalblue;
}
![CSS - Square](/images/css/square/image-en.png)