This text is Bold
This text is Italic
This text is underlined
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>Sample example illustrating the basic Usage of CSS along with XHTML</title>
<!-- Main CSS part for Nesting! You may overlook this portion for now! By the end of this tutorial you will learn it completely --><style type="text/css">body {margin: 0;
padding: 0;
font-family: Trebuchet,Trebuchet MS,Arial,sans-serif;
font-size: 14px;
}
a:link, a:visited, a:hover, a:active {color: #000099;
border: 0px none;
outline: hidden;
text-decoration: underline;
}
a:hover {text-decoration: none;
}
a img {border: 0px none;
}
div.wrapper {background: #C5D4E2;
width: 700px;
margin: 0 auto;
padding: 10px;
border: 2px solid #3E6098;
border-top: 0px none;
height: 1000px;
overflow: hidden;
text-align: center;
}
div.content {background: #F1F5F9;
margin: 10px auto;
width: 600px;
border: 1px solid #81A8B8;
padding: 0;
}
div.main-content {background: #fff;
width: 500px;
margin: 40px auto;
padding: 10px;
border: 1px solid #CCCCCC;
text-align: left;
}
img.logo {display: block;
margin: 10px auto;
}
.credit {text-align: right;
}
.credit a {color:#333366;
font-weight: bold;
text-decoration: none;
}
.credit a:hover {text-decoration: underline;
}
div.demo {background: #F1F5F9 url("demo64.png") no-repeat scroll 5px top;width: 200px;
margin: 10px 0;
padding: 20px 10px 20px 75px;
font-size: 22px;
font-weight: bold;
border: 2px solid #81A8B8;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
text-align: left;
}
div.dwl {background: #F1F5F9 url("dwn64.png") no-repeat scroll 5px top;width: 200px;
margin: 10px 0;
padding: 20px 10px 20px 75px;
font-size: 22px;
font-weight: bold;
border: 2px solid #81A8B8;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
text-align: left;
}
</style><!-- This portion is used to style different texts! CSS can do much much more than just bold and italics --><style type="text/css">p.bold {font-weight: bold;
}
p.italic {font-style: italic;
}
p.underline {text-decoration: underline;
}
</style></head><body><div class="wrapper"><a href="http://www.intechgrity.com/"><img class="logo" src="logo.png" alt="inTechgrity.com"/></a><div class="content"><div class="main-content"><p class="bold">This text is Bold</p>
<p class="italic">This text is Italic</p>
<p class="underline">This text is underlined</p>
</div></div><p class="credit">Page by <a href="http://www.intechgrity.com">inTechgrity | Swashata</a></p>
</div></body></html>
