<!-- CSS:Basics plus snippet 6. -->
<!-- Setting background color and background image. -->
<!-- Page will degrade gracefully to show background colour if background image not available. -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>View snippet page</title>
<style type="text/css">
body {
background-color:#000000;
background-image: url(stars.gif);
background-repeat:repeat;
}
h1 {
font-family:Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: normal;
color: #ffffff;
}
</style>
</head>
<body>
<h1>Background will either be a black with colour or black with an image so white text will always be readable.</h1>
</body>
</html>