Window height htmlk code example
Example 1: css window height
div {
height: 100vh;
}
Example 2: get window height javascript
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Screen width is " + screen.width;
</script>