7. Example of Applying Internal CSS in HTML.
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<h2>This is the second heading.</h2>
</body>
</html>
Output
No Output Available