Write an html program on CSS?
Program: <html> <head> <title>style sheet2</title> <style> h1 { color: red; ...
https://www.computersprofessor.com/2016/06/write-html-program-on-css.html?m=0
Program:
<html>
<head>
<title>style sheet2</title>
<style>
h1
{
color: red;
border: thin groove;
}
h2
{
color: green;
margin-left: 60%;
}
.myid {
text-align: right;
color: purple;
}
</style>
</head>
<body>
<h1>simple style sheet</h1>
<p>The first paragraph is printed.</p>
<p style="margin-left:10%; border:ridge;
background: #ffc0cb">But this paragraph is undergoes inline declaration</p>
<p>Again using the external style sheet</p>
<h2> Here's a heading </h2>
<h3 class="myid">Another heading</h3>
<p class="myid">Followed by some text</p>
</body>
</html>
Output:-