Topic:4
CSS is a style sheet language used for
describing the look of the web page.
<!DOCTYPE html>
3 EXTERNAL CSS
<p style="text-align:center/right/justify/left"></p>
• Text color
<a style="text-decoration:none/overline/line-through/underline">
• Text alignment
• Text decoration </a>
• Text transform <P STYLE="TEXT-
• Text Shadow TRANSFORM:UPPERCASE/lowercase/Capitalize"></P>
text-shadow: h-shadow v-shadow
blur color </body>
</html> 7
</body>
8
</html>
16CS302 INTERNET PROGRAMMING-CSS,H.SUMMIA PARVEEN AP/CSE
The link has these four states:
• a:link - A normal, unvisited link
• a:visited - A link that the user has already visited
• a:hover - A link when the user mouses over it
• a:active - A link the moment it is clicked
The properties like text-decoration,color,background-color in order to differentiate and add better look
<style>
a:link {text-decoration:none;}
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}
Sample:3<style>
body { background:url("background.jpg") no-
repeat right top/no-repeat x% y%;;}
</style> 11
12
p {background-
40px;}
16CS302 INTERNET PROGRAMMING-CSS,H.SUMMIA PARVEEN AP/CSE
Example:
14