HOMEHTMLFLASHVisual BasicsPIVOTBINARYNETWORKDESIGN


CSS Coding Example


CSS

Another way of setting out your page is by using CSS coding. Once you understand the basics of html/xhtml it will be quite easy to pick up how to write CSS coding.

This is an example of CSS coding.Note that each style has been set in the head; style type, background color,heading, text alignment, paragraph, font face, font size.


<html>
<head>
<style type="text/css">
body
{
background-color:#d0e4fe;
}
h1
{
color:red;
text-align:center;
}
p
{
font-family:"Times New Roman";
font-size:20px;
}
</style>
</head>
<body>
<h1>CSS example!</h1> <p>This is a paragraph.</p>


This is what it looks like on the web page.


CSS example!

This is a paragraph.






TOP   BACK   HOME