CSS I
Click here for an online editor.
CSS is an update to HTML. It stands for cascading style sheet. HTML was never intended to contain tags for formatting a document.“When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a nightmare for web developers. Development of large web sites, where fonts and color information were added to every single page, became a long and expensive process. To solve this problem, the World Wide Web Consortium (W3C) created CSS. In HTML 4.0, all formatting could be removed from the HTML document, and stored in a separate CSS file. All browsers support CSS today.” (http://www.w3schools.com/css/css_intro.asp). Read more about CSS here.
CSS Syntax
A line of CSS code has two parts: the selector and the declaration(s):
The selector is the the HTML item that you wish to format (paragraph, heading, background). Declarations are the values or colors assigned to the selector. There can be multiple declarations for a single selector. You’ll always need the basic head shown below in blue:
<head>
<style type=”text/css”>
</style>
</head>
<p></p>
Now try this by copying this code into your editor:
<head>
<style type=”text/css”>
h1 {color:blue;}
p {margin-left:10px;}
</style>
</head>
<h1>This is the HEADING</h1><p>CSS!</p>
<p>This is going to make things much easier!!</p>


never copy it always write it out yourself it helps you learn it and remember the format
January 30, 2012 at 6:20 pm