Class Example for CSS
Class Example for CSS
Coding
<DOCTYPE html>
<html>
<head>
<title> CSS </title>
<!-- <style>
h1 {
color:red;
background-color:black;
}
Method - 2
p{
background-color:yellow;
}
button {
color:blue;
background-color:gold;
Method - 3
}
</style> -->
<body>
<!--
<h1 style="color:red"> Shreyansh Institute </h1>
<h1 style="color:red"> Computer Centre </h1> Method - 1
<h1 style="color:red"> Banda Road Naraini </h1>
<p style="color:olive"> This is paragraph 1 </p>
<button style="color:blue; background-color:gold"> Button 1 </button> -->
<h1> Shreyansh Institute </h1>
<h1> Computer Centre </h1>
<h1> Banda Road Naraini </h1>
<p> This is paragraph 1 </p>
<button> Button 1 </button>
<hr>