Introduction:
In CSS, classes allow you to apply a style to a given class
of an element. To do this, you link the element to the style by
declaring a style for the class, then assigning that class to the
element.
Example:
<head>
<style type="text/css">
div.css-section { border:1px dotted red; }
p.css-section { color:green; }
</style>
</head>
<body>
<div class="css-section">CSS Class</div>
<p class="css-section">CSS classes can be very useful</p>
</body>
0 comments :
Post a Comment