Height and Width

The CSS Height and Width property it is used to set the height of a html element.

Height and Width

<style>
div {
height: 150px;
width: 350px;
background-color: #A7D71B;
}
</style>

Height and Width example:

<html>
<head>

</head>
<body>
<div class="x1">

The height is 150 pixels.

The width is 350 pixels.

</div> </body> </html>



The height is 150 pixels.

The width is 350 pixels.