CSS Basic Formatting Code


The basis of style sheets for Web design. You can use this cascading style sheet template to begin creating your beautiful website.

There are many ways to link style sheets to HTML, each carrying its own advantages and disadvantages. And there are two easy methods to insert the CSS in your web page.

The first method is to embedded the style sheets directly into a web document - insert the style container tag inside the header tags. Such as the following example:

<head>
<style type="text/css">
body {
  font-family: Arial, Helvetica;
  color: Black;
  background-color: White;
}

other css code here...
</style>
</head>
            

The second method is to create a style sheet link in the header tags, and links to external CSS file. External CSS files must be saved using the .css file extension. The following is one example of an external link to CSS file:

<head>
  <title></title>
  <link rel="stylesheet" href="style.css" type="text/css">
</head>
            

For full article, please see Linking Style Sheets to HTML

The following resources is the most basic CSS example, you can replace with your favorite color or style.


Resources:


CSS Code


HTML Code



Webmaster » XHTML CSS » You are here


 Related Links:

Home | Sitemap | Bookmark This Page
Sponsored Links

CSS Website Layout