|
||||||||||||||||||||||
CSS Introduction : CSS SyntaxExample 1A basic example of CSS syntax might be:h1 {
font-size: 16pt;
font-family: Arial, Verdana, sans-serif;
color: black;
background-color: yellow;
}
CSS Example
This is CSS syntax to set the properties of a <h1> tag.
Note:Pretty simple so far? Well it doesn't get much harder.Basically, you name your tag type, add some curly brackets { } and type the properties you want inbetween.
Properties have the syntax: property-name: value; For a full list of CSS properties, and a wealth of other information.. visit Blooberry.com. I'm always visiting this website to check up on bits and pieces.
Example 2So, another example, say we want to set the colour of our links to red, and remove the annoying underline?a {
color: #CC0010;
text-decoration: none;
}
Example CSS
Pretty straight forward. We're using <a> as the tag name. That covers the very basics, but of course theres alot more you can do with CSS. Go to the next page to see how we use CSS alongside HTML.
Author: Markavian |
tutorial Pages
|
|||||||||||||||||||||