Cascading style sheets is just that, a styling sheet. HTML and CSS work together to style your website: font, color, background, position of divs, widths and heights, etc.
There are two ways to make your CSS work with your HTML: One is to write your CSS in between the head tags of your HTML file like this:
<html>
<head>
<title>How CSS works</title>
<style type="text/css">
body {background-image: url(Address of picture to be used)
}
p {color: green;
font-size: small;
font-family: arial;
}
</style>
</head>
<body>
<p>This text will appear small, green, and in arial.</p>
</body>
</html>
Another way is to link your HTML file to a separate CSS file.
<html>
<head>
<title>How CSS works</title>
<link type="text/css" rel="stylesheet" href="URL to CSS file" />
</head>
<body>
body content
</body>
</html>
This website should help you understand CSS a little better and maybe even teach you how to use it.
http://www.utexas.edu/learn/css/
|