HTML Cookbook Basic HTML Course

It's Easy!



This is a sample page with a marble background. I put it on my page using:
<body style="background-image: url(../images/marble.gif)">

I like this effect so I made a class for it:
.marble { background-image: url(marble.gif)}

Then I put my class in my body tag:
<body class="marble">

I also made pages using this background-image in a div, a paragraph and a span. Check them out.



Valid XHTML 1.0!

Valid CSS!