I have set the height of the HTML tag to 100px and the background color to coral but it is applied to the whole document.
By default, the height of the HTML tag is auto and if I set the background color to that HTML tag then it is applied to the whole document which is obvious as the height is auto.
Please help me to understand the height property to HTML tag and body tag.
* {
margin: 0;
padding: 0;
}
html {
height: 100px;
background-color: coral;
}
<html>
<head></head>
<body></body>
</html>