CSS 2
CSS 2
<head>
<title>css background</title>
</head>
<style>
body {
h1 {
background-color: red;
color: white;
word-spacing: 30px; //this will give word spacing to the words in heading
p.uppercase {
color: red;
p.lowercase {
text-transform: lowercase; //this will convert the whole text to lower text in
paragraph
font-size: 50;
p.capitalize {
text-transform: capitalize; // this will convert the first letter of every word to
capital letter in paragraph
font-size: 50;
text-indent: 100px; // this will create space before starting any line
p.big {
line-height: 10; // this will give the space between lines in a paragraph
</style>
<body>
<h1>heading in red background with white color with letter spacing as 10px
</h1>
</body>
</html>
<html>
<head>
<title>ordered list</title>
</head>
<style>
body{
background-color: black;
color: red;
font-size: 30px;
ul.a {
list-style-type: circle; //this will define the unordered list with circle
background: #ffe5e5; //this will give background color to the unordered
list
padding: 5px; // this will tell the background to show in how much space
ul.b {
list-style-type: square;
background: #3399ff;
padding: 40px;
ol.c {
list-style-type: upper-roman;
background: #ffe5e5;
padding: 5px;
margin-left: 35px;
ol.d {
list-style-type: lower-alpha;
background: #ff9999;
padding: 40px;
}
ul.e{
</style>
<body>
<ul class=a>
<li> Coffee</li>
<li> Tea</li>
</ul>
<ul class=b>
<li> Coffee</li>
<li> Tea</li>
</ul>
<ol class=c>
<li> Coffee</li>
<li> Tea</li>
</ol>
<ol class=d>
<li> Coffee</li>
<li> Tea</li>
</ul>
<ul class=e>
<li> Coffee</li>
<li> Tea</li>
</ul>
</body>
</html>