Edit This Code:
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
  font-size: 15vmax;
}

</style>
</head>
<body>

<h1>Hello</h1>

<p>Resize the browser window (both width and height) to see how the font-size of h1 changes.</p>
<p>1vmax = 1vw or 1vh, whichever is larger.</p>
<p>The vmax unit is not supported in Internet Explorer or Safari.</p>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy