I have just started to learn the CSS in html because i find that there is no point falling behind the current web 2.0 Generation. I got messed up with the code or with the color attribute. what i want is that in my code pnl.cs3 should have small caps but because i messed up with the code i am getting red color instead of the aqua. Please help me to get rid of this css color problem.
Code:
<html>
<head>
<style type="text/css">
body {background-color: yellow;}
body {color:red}
h1 {color:#00ff00}
pnl.cs1 {color:rgb(0,0,255)}
pnl.cs2 {color:000000}
pnl.cs3
{
color:0fffff,font-variant:small-caps
}
</style>
</head>
<body>
<h1>This is my heading</h1>
<p>This is a regular paragraph. The default text should be red. This is defined in the body section of my css</p>
<p class="cs1">This is a paragraph with class="ex". This text is blue.</p>
<p class="cs2" class="small">This is a second paragraph with a class. This text should be black because i entered 000000</p>
<p class="cs3">This is my 3rd paragraph with a class of 3. This text should be aqua blue</p>
</body>
</html>
Bookmarks