Here is some HTML code:
<!DOCTYPE html>
<html>
<head>
<title>Testing Page</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1 class="hidden">Hello World</h1>
</body>
</html>
This is the CSS code:
.shown {
display: hidden;
}
After running this code, the heading is still visible. Why is that? I expected the 'display: hidden' property to hide the element from view on the page's normal flow.