www.webdeveloper.com
Results 1 to 3 of 3

Thread: Help!

  1. #1
    Join Date
    Aug 2004
    Location
    Philippines
    Posts
    1

    Unhappy Help!

    <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!

  2. #2
    Join Date
    Mar 2004
    Location
    Glasgow, Scotland
    Posts
    613
    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.
    zing

    | Web Design and Development in Glasgow - 404i |
    | Blog |

    Code:
    -. .-.   .-. .-.   .-. .-.   .-. .-.   .-. .-.
    ||x|||\ /|||x|||\ /|||x|||\ /|||x|||\ /|||x|||\ 
    |/ \|||x|||/ \|||x|||/ \|||x|||/ \|||x|||/ \|||
    '   '-' '-'   '-' '-'   '-' '-'   '-' '-'   '-'

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    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/.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles