CSS Class Selector Example :
<!DOCTYPE html>
<html>
<head>
<title> kod4u </title>
<style type="text/css">
.para {
color: red;
}
</style>
</head>
<body>
<h1> Class Selector Example </h1>
<p class="para"> We use Class Selector in more then one html elements. Here this is First paragraph. </p>
<hr/>
<p class="para"> Here this is Second paragraph. </p>
</body>
</html>
OUTPUT<html>
<head>
<title> kod4u </title>
<style type="text/css">
.para {
color: red;
}
</style>
</head>
<body>
<h1> Class Selector Example </h1>
<p class="para"> We use Class Selector in more then one html elements. Here this is First paragraph. </p>
<hr/>
<p class="para"> Here this is Second paragraph. </p>
</body>
</html>
No comments:
Post a Comment