Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 17th, 2013, 11:44 AM   #1
bluejay10
Newbie
 
Join Date: Jan 2013
Posts: 1
Rep Power: 0 bluejay10 is on a distinguished road
Why isn't the one picture need not popping up in my homework?

Hi.I been told to make a very simple webpage but the problem is that the one picture needed for this isn't popping up.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Math High:Leonhard Euler</title>
<script src="modernizr-1.5.js"></script>
<link href="mhstyles.css" rel="stylesheet" type="text/css" />

</head>

<body>
     <header>
	 <img src="D:/lab1/images/mhlogo.jpeg" alt="Math High" width="150" length="500"/>
	     </header>
		 
		 <article><h1>Leonhard Euler (1707-1783)</h1>

         <p>The greatest mathematician of the eighteenth century,<strong>Leonhard Euler</strong> was 
         born in Basel, Switzerland. There, he studied under another giant of 
         mathematics,<strong>Jean Bernoulli</strong>. In 1731 Euler became a professor of physics 
         and mathematics at St. Petersburg Academy of Sciences. Euler was the most 
         prolific mathematician of all time, publishing over <em>800 different books</em> and 
         papers. His influence was felt in physics and astronomy as well.</p>

        <p>He is perhaps best known for his research into mathematical analysis. Euler's 
        work,<cite>Introductio in analysin infinitorum (1748)</cite>, remained a standard textbook 
		in the field for well over a century. For the princess of Anhalt-Dessau he wrote 
		<cite>Lettres a une princesse d'Allemagne (1768-1772)</cite>, giving a clear non-technical 
		outline of the main physical theories of the time.</p>

        <p>One can hardly write a mathematical equation without copying Euler. 
        Notations still in use today, such as <var>e</var> and &pi;, were introduced in
		Euler's writings. Leonhard Euler died in 1783, leaving behind 
        a legacy perhaps unmatched, and certainly unsurpassed, in the annals 
        of mathematics.</p></article>
	
		 
<aside><h1>The Most Beautiful Theorem?</h1>

<p>Euler's Equation</p>

<p>cos(<var>x</var>) + <var>i</var>sin(<var>x</var>) = e <sup>(<var>ix</var>)</sup></p>

<p>demonstrates the relationship between algebra, complex analysis, 
and trigonometry. From this equation, it's easy to derive
the identity</p>

<p><var>e</var><sup>(&pi; <var>i</var>)</sup> + 1 = 0</p> 

<p>which relates the fundamental constants: 0, 1, &pi;,<var>e</var>, and <var>i</var> in
a single beautiful and elegant statement. A poll of readers 
conducted by <cite>The Mathematical Intelligencer magazine</cite>
named Euler's Identity as the most beautiful theorem in 
the history of mathematics.</p></aside>
	 
</body>

<footer> Math High: A Site for Educators and Researchers</footer>
</html>

I've tried combinations like

Quote:
<body>
<header>
<img src="D:/lab1/images/mhlogo.jpeg" alt="Math High" width="150" length="500"/>
</header>
but it still doesn't work despite the picture file clearly being in that location

and

Quote:
<img src="mhlogo.jpg" alt="Math High">
it always keeps on being output on chrome,IE and firefox browser as a piece of paper with a red triangle,green circle and blue square slightly torn in the bottom right.Why is this?.What am I doing wrong that it doesn't appear on the browser already?.
Attached Images
File Type: png pic location.PNG (92.6 KB, 2 views)
bluejay10 is offline   Reply With Quote
Old Jan 17th, 2013, 12:51 PM   #2
sixstringartist
Programming Guru

 
Join Date: Jun 2005
Posts: 1,333
Rep Power: 14 sixstringartist will become famous soon enough
Re: Why isn't the one picture need not popping up in my homework?

What is the exact file extension? .jpg or .jpeg (or something else)? You can display file extensions in windows by going to folder options and un-checking the 'hide extensions for known file types" box. This is often very handy for programmers.

Where is the image in relation to the html page?

Try:
<img src="images/mhlogo.jpg" alt="Math High">
sixstringartist is offline   Reply With Quote
Old Jan 18th, 2013, 4:52 AM   #3
_Ariel_
Newbie
 
Join Date: Jan 2013
Posts: 3
Rep Power: 0 _Ariel_ is on a distinguished road
Re: Why isn't the one picture need not popping up in my homework?

Hello,

You need to change from
Quote:
<img src="D:/lab1/images/mhlogo.jpeg" alt="Math High" width="150" length="500"/>
to
Quote:
<img src="images/mhlogo.jpeg" alt="Math High" width="150" length="500"/>
Good Luck!
_Ariel_ is offline   Reply With Quote
Old Jan 19th, 2013, 7:05 PM   #4
glen59
Newbie
 
glen59's Avatar
 
Join Date: Jan 2013
Location: Memphis
Posts: 5
Rep Power: 0 glen59 is on a distinguished road
Re: Why isn't the one picture need not popping up in my homework?

Most, if not all, web servers have a set group of directories they are restricted to. They can not search through an entire directory structure of a computer even if told where it is.

Make a directory for images under the directory for where you store your working html pages. Move or copy the picture to that directory, then reference the picture from that directory rather than the original. So long as the directory is below where the html documents are stored, the server should be able to access it.
glen59 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Picture Labeler using PHP/MySQL KevT PHP 0 May 20th, 2009 4:27 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC