Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSS USE
01-01-2010, 09:44 PM
Post: #1
CSS USE
Hello
Anyone can tell me that what is the use of CSS in websites and where it's declare??

dsi r4
Find all posts by this user
Quote this message in a reply
05-19-2010, 10:11 AM
Post: #2
RE: CSS USE
CSS is used to style web pages. Styling can include anything from basic text/link styling to more advanced background and border styling. It is declared in the header section of the html document. Refer to the example below.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test</title>
<style type="text/css">

body {
background-color:black;
}
</style>
</head>

<body>
</body>
</html>

There is also another form of CSS styling that is called "inline styling." This is when the "style="" is used. Also, see the example below.

Code:
<a href="http://google.com" style="color: black;">Google</a>
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: