- The background color changes only for the
h1
element - The background changes only for all elements on the webpage
- The text color changes only for the
h1
element <html>
<head>
<style> body { color: grey; } h1 { background-color: blue; }
</style>
</head>
<body><h1>The Anti-Social Network</h1> <p>Daniel checked-in somewhere</p>
</body>
</html> ]]>The background changes only for the h1
element.