htmlcss

The height property is used in CSS and certain HTML elements. It specifies the height of the content area of an element. The content area is inside the padding, border, and margin of the element.


Values


HTML example:

<h1 style="height:50px; width:100px;">
1st heading content.
</h1>


CSS example:

h1 {
    height:50px;
    width:100px;
}

See Also