Skip to main content

Practical-11

Code

<!DOCTYPE html>
<html>
<head>
<style>
p {
color: red;
font-size: 20px;
}

h1 {
color: blue;
font-size: 30px;
}

body {
background-color: yellow;
}
</style>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

Output

Explanation