The height and width properties are used to fix the height and width of the HTML document or any web page section.
Example of Code
<style>
#example-CSS-Height-and-Width-Properties-div{
height: 150px;
width: 75px;
background-color: gold;
}
</style>
<div id="example-CSS-Height-and-Width-Properties-div">
This div has height and width applied.
</div>
Output
This div has height and width applied.