7 Replies - 1000 Views - Last Post: 09 November 2009 - 03:52 PM

#1 jcremeans11  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 250
  • Joined: 04-October 09

Image wont display

Posted 09 November 2009 - 03:26 PM

My code won't do anything when I open it with the browser, it just shows the text.

<html>
<head>
<title>
Plated City
</title>
</head>
<img src = “plated city logo.jpg”>
<body bgcolor=”brown” text=”black”>
<p>
Hello World
</p>
</body bgcolor=”brown” text=”black >
</html>


Any help?
Is This A Good Question/Topic? 0
  • +

Replies To: Image wont display

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Image wont display

Posted 09 November 2009 - 03:30 PM

I'm guess by "Wont work" you mean the image wont show? If so then do 2 things:
  • Rename the image so there are no spaces in the name
  • Make sure the path to the image is correct

Hope that helps :)
Was This Post Helpful? 0
  • +
  • -

#3 jcremeans11  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 250
  • Joined: 04-October 09

Re: Image wont display

Posted 09 November 2009 - 03:33 PM

Actually I mispoke, none of it will show up not the text or anything. It just shows the code I wrote.
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Image wont display

Posted 09 November 2009 - 03:35 PM

Now that I look at it your HTML is all wrong. You've got your image tag outside the body tag, you dont need the color stuff in the closing body tag. Here's some edited code

<html>
<head>
<title>
Plated City
</title>
</head>

<body bgcolor=”brown” text=”black”>
<img src = “plated city logo.jpg” />
<p>
Hello World
</p>
</body >
</html>


Was This Post Helpful? 1
  • +
  • -

#5 jcremeans11  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 250
  • Joined: 04-October 09

Re: Image wont display

Posted 09 November 2009 - 03:39 PM

That's still doing the same thing. Idk if I'm using the right program or something. I'm writing it in Microsoft word and saving it as .htm but I tried it in notepad too and that didnt work either.
Was This Post Helpful? 0
  • +
  • -

#6 jcremeans11  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 250
  • Joined: 04-October 09

Re: Image wont display

Posted 09 November 2009 - 03:44 PM

Wait nevermind I got it figured out. Thanks
Was This Post Helpful? 0
  • +
  • -

#7 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Image wont display

Posted 09 November 2009 - 03:46 PM

Well I'm not quite sure what you're doing wrong but I pasted that into Notepad and saved as test.htm and it works just the way it's supposed to.

I will say do not use Word for writing HTML files. When doing it in Notepad when you click Save As make sure to Select All Files in the Save as type DropDownList (Check screenshot below). For creating HTML pages I would suggest using Notepad++

Attached Image
Was This Post Helpful? 0
  • +
  • -

#8 jcremeans11  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 250
  • Joined: 04-October 09

Re: Image wont display

Posted 09 November 2009 - 03:52 PM

Yeah I was saving it wrong Xp
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1