Wednesday, October 24, 2012

CSS Head



Chapter 3



Example :1

<head>
<style>
body {background-color:yellow;}
h1   {font-size:36pt;}
h2   {color:blue;}
p    {margin-left:50px;}
</style>
</head>

<body>

<h1>This header is 36 pt</h1>
<h2>This header is blue</h2>

<p>This paragraph has a left margin of 50 pixels</p>

</body>
</html>

Output is:

This header is 36 pt

This header is blue

This paragraph has a left margin of 50 pixels

No comments:

Post a Comment