Adding image problem


#1

I receive "Opps. Try Again!" I don't know what went wrong with my code. I need to add the second picture. Please help. It showed the image but I just can't submit the answer. I did have DOCTYPE html and html tags.

Here is my code:

<head>
	<title></title>
</head>
<body>
	<img src="https://s3.amazonaws.com/codecademy-blog/assets/f3a16fb6.jpg" 
	<img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg"/>
</body>

#2

you need to close both images with .jpg" /> (note the space between .jpg" and />


#3

I also had this problem but my code was correct I even have a screenshot of the problem. here is my code


#4

this exercise requires you to use xml syntax, this means you need a space between .jpg" and />


#5

Then the duck img src needs to use the correct syntax. i did not modify it in any way. examples needs to be 100% correct to correctly teach someone.


#6

sorry, what do you mean?


#7

Sorry...my code was correct too. Then, I accidentally delete part of mine. I just try to add "&" between the link and forgot to put it back. Anyway, the space before / is what it need. My problem is solved, Thanks! ^_^


#9

Be careful to make sure its all on the same line(the numbers at the side. Don't start a new line of code by hitting enter). Thats what threw me off with mine at least. D:


#10

Saved me man
:wink: Thank you!


#11

there are always problems


#12

Thank you. I put both the images in the same line as you suggested and my problem got solved. I was adding the second image in a new line and getting the problem. Now solved. Thanks.

viswanathan


#13

Your <img> syntax is nearly correct, you just need to add a space prior to />.

Correct Syntax:
<img src="Image link here" />
As you can see in the syntax, there is one space character between the image link and the closing of it.

Live Demo Example:
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_images_mountain

Hope I helped.