HTML Webpage need help!

Posted on 2014-03-28
Last Modified: 2014-03-28
I have a web page I am working on and am stuck on the very first part. I need to insert a logo as an img and when i try it shows up as this cant get img to showw fully.  this is my code

<title>company that shall not be named</title>
<head><b><p><h2>company that shall not be named</h2></text></b></head>
<text><p>The future is here!</p></text>
<img border="0" src="/images/logo.jpeg" alt="greenerpc" width="304" height="228">

Help Please!!!
Question by:HDM
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39962238


In either case, the presumption is that there's a folder called images under the root of the web site.
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39962370
Make sure you can surf to /images/logo.jpeg which is

Author Comment

ID: 39962795
Scott fell (padas),

I am lost in your comment. Do you mean in my browser? If so, i am not able to do that. Please explain

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39962815
Your image code <img border="0" src="/images/logo.jpeg" alt="greenerpc" width="304" height="228"> is calling for a file called log.jpeg inside the folder called images that is the top level folder on your site.

If you site is  Then the top level folder called images will be    and the file we are looking for is logo.jpeg so putting it all together   If you can type that in your browser (changing to your own site) and see the image, you are good.  If you can't, then your image is not where you think it is.    

You can log into your server or use ftp and look for a folder called images and in that folder a file called logo.jpeg.      Note that an image file can be jpeg, jpg (same file type as jpeg), .gif, .png.   Make sure everything is spelled correctly too.  Many times jpg and jpeg get substituted.

In short, make sure the file you are calling is on the server.

Author Comment

ID: 39962822
I found a mistake, but apparently not the only one.  My logo was in pictures and not images.  i still cant search and find it in my browser, though.  Could it be that i am using notepad++?

LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39962839
I see your problem.  I looked at your screenshot you uploaded.  Your local html file is in c:/users/nate/documents/ folder.   This would mean to see your image, you would have to have a folder called images in your c drive like c:/images.  That is not practical.  

You can change your code to
<img border="0" src="images/logo.jpeg" alt="greenerpc" width="304" height="228">

Open in new window

and that may work locally depending on where your images folder is.

You may want to read up on absolute and  relative paths

You should probably use localhost to test your sites.  I am not a windows person, but I think you have to install iis first

This will allow you to access your local files like http://localhost/mypage.html just as you do your site.

One of our Experts Karzkiss has a good video on this with one exception. He talks about turning on parent paths.  Leave that that off in production and testing.  I think this talks about asp pages, but it is good for html as well

Author Comment

ID: 39963001
So, i created a folder of the Cdrive called Images and put my logo in it.  i then changed my code to
<img border="0" src="/images/logo.jpeg" alt="greenerpc" width="304" height="228"> , but my out come is still the same. i still cant wrap my head around this

LVL 52

Accepted Solution

Scott Fell,  EE MVE earned 500 total points
ID: 39963009
Going back to  your file location.  Your html file is in c:/users/nate/documents/

Your image is accessing /images/logo.jpeg.    By using the slash in front, you are telling the browser to look for the image logo.jpeg in c:/images/ folder.    

IF your folder structure is like this

  |- users
              |- nate

Then try taking out the slash

<img border="0" src="images/logo.jpeg" alt="greenerpc" width="304" height="228">

Author Comment

ID: 39963057
Okay... WOW... yeah... that worked... thank you!!

Author Closing Comment

ID: 39963059
PERFECT!! thank you!!

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question