In: Computer Science
Write a rule for an id selector named heading. Set the
color property to blue and the font-family property to georgia.
Apply the heading class to the <h1> element in the
document.
this is in css
Answer:
<!DOCTYPE html>
<html>
<head>
<style>
#heading {
background-color: blue;
font-family:georgia;
}
</style>
</head>
<body>
<h1 id='heading'>Welcome to My Homepage</h1>
</body>
</html>
Output:
Let me know in case if you have any doubts. Thanks and all the best.