Using class in CSS

<html>
<head>
<style>
body{
background:green;
}
.para{
background:red;
}
</style>
</head>
<body>
<p class="para">This paragraph has red background color</p>
<body>
</html>
The output is given below:

0 comments:

Post a Comment