Thursday, December 27, 2018

CSS using the class attribute

HTML with CSS using the class attribute:- 


<html>
<head>
<style>
p.cad {
  color: brown;
}
</style>
</head>
<body>

<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p class="cad">I am changer.</p>
<p>This is a paragraph.</p>
<p class="cad">I am changer 2nd.</p>

</body>
</html>

OUTPUT:-




No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...