user3831402
user3831402

Reputation: 13

My Image wont show up

I checked to be sure that I have an image folder on the same level as my html file, but the image won't show.

NOLA Montessori

<body>

<p>
    <img src=Images\"Photo1.jpg" alt="Montessori Classroom" width="500" height="250">
</p>


<q>"Free the child's potential and you will transform him into the world."</q>
    <i>Maria Montessori</i>

Upvotes: 1

Views: 80

Answers (5)

m82amjad
m82amjad

Reputation: 248

Please Try the following see if it helps ..

<body>
  <p>
<img src="Images/Photo1.jpg" alt="Montessori Classroom" width="500" height="250" />
 </p>

<q>"Free the child's potential and you will transform him into the world."</q>
<i>Maria Montessori</i>
</body>

Upvotes: 0

jned29
jned29

Reputation: 478

The double quotes must surround the whole url like this

<img src="Images/Photo1.jpg">

Upvotes: 1

Suresh Ram
Suresh Ram

Reputation: 1034

I think you are misplaced the double quotes img src=Images\"Photo1.jpg" this will not work:

Try this :

<body>

<p>
    <img src="Images/Photo1.jpg" alt="Montessori Classroom" width="500" height="250">
</p>


<q>"Free the child's potential and you will transform him into the world."</q>
    <i>Maria Montessori</i>

</body>

Upvotes: 1

Avinash Babu
Avinash Babu

Reputation: 6252

Changing the quotes can solve your problem..

<img src="Images/Photo1.jpg" alt="Montessori Classroom" width="500px" height="250px">

Upvotes: 1

compman2408
compman2408

Reputation: 2509

The quotes need to be surrounding the whole URL to the image and not just the "Photo1.jpg" part. Also you should use forward slashes for websites ("/" instead of "\"). For example:

<img src="Images/Photo1.jpg" alt="Montessori Classroom" width="500px" height="250px">

Upvotes: 1

Related Questions