<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@media (height: 360px) {
h1 {
color: red;
}
}
@media (min-height: 360px) {
h1 {
color: green;
}
}
@media (max-height: 360px) {
h1 {
color: blue;
}
}
</style>
</head>
<body>
<h1>CSS @media height</h1>
<p>Resize your browser height to see the changes.</p>
</body>
</html>