Click to See Complete Forum and Search --> : Help!


elle
09-02-2004, 06:10 AM
<HTML>
<HEAD>
<TITLE> SPACE </TITLE>
</HEAD>
<BODY BACKGROUND = "winter.jpg">
</BODY>
</HTML>

Is this code correct? Im a beginner in html, i made thid code but still the picture (winter.jpeg) don't appear in the background. Can you help me please? Thank you!

zingmatter
09-02-2004, 06:44 AM
Are you sure the file "winter.jpg" is in the same directory as the web page? and is it spell correctly?definitely .jpg and not .gif or something?

The html looks fine.

Charles
09-02-2004, 07:46 AM
Your page needs to look like:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Style-Type" content="text/css">
<title>Example</title>

<style type="text/css">
<!--
body {background-image:url(winter.jpg)}
-->
</style>

</head>
<body>
<h1>Example</h1>
</body>
</html>

And always check your work at http://validator.w3.org/.