<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@media (hover: hover){
h1 {
color: blue;
}
}
</style>
</head>
<body>
<h1>CSS @media hover</h1>
<p><strong>Note</strong>: Check the following</p>
<ul>
<li>If h1 color is 'blue', then you are using a device which can hover the elements.</li>
<li>If h1 color is 'black', then you are using a device which cannot hover the elements.</li>
</ul>
</body>
</html>