Wednesday, October 24, 2012

CSS Link




Chapter 4



Example :2

<html>
<head>
<style>
body {background-color:tan;}
h1   {color:maroon;font-size:20pt;}
hr   {color:navy;}
p    {font-size:11pt;margin-left:15px;}
a:link    {color:green;}
a:visited {color:yellow;}
a:hover   {color:black;}
a:active  {color:blue;}
</style>
</head>

<body>

<h1>This is a header 1</h1>
<hr>

<p>You can see that the style
sheet formats the text</p>

<p><a href="http://atoz4tutorials.blogspot.in/"
target="_blank">This is a link</a></p>

</body>
</html>

Output is:

This is a header 1

You can see that the style sheet formats the text


No comments:

Post a Comment