This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by jflour
over 9 years

What is wrong with my code?

<!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>
    <body>
    <a href="http://www.codecademy.com"><img src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSHKGxblnXaiM5dzNVrowDdxyE49r6-GF6F5-vuWk7SIZBFxxH3pw /></a>
    
    <img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSl_amXe5r7X9ZtKOFRgQBXwfPmV2zmdtGwWnQ-IQ_hs-k6sweF />
        <a href="https://www.google.com"></a>
        
        
    </body>
</html>

Eddited by a Tony de Araujo ( moderator); To learn how to paste code please read this: http://www.codecademy.com/forum_questions/51d9e8f68c1cccc92403ffe8

Answer 5449c52d282ae36cb9000972

2 votes

Permalink

Images normally end with the .jpg extension ( sometimes .gif or .png) but if they don’t end with one of these extensions you can’t really post them.

Here’s a sample with good images:

<body>
   
        <img src="http://s3.amazonaws.com/codecademy-blog/assets/f3a16fb6.jpg">
        <br>
        <a href="gzlongsheng.en.made-in-china.com"><img src="http://s3.amazonaws.com/codecademy-blog/assets/f3a16fb6.jpg"></a>
        <br>
        <a href="gzlongsheng.en.made-in-china.com">made in China</a>

</body>
points
Submitted by tony de araujo
over 9 years

Answer 546e97f1631fe9e106000750

0 votes

Permalink

The problem is the links to your images are encrypted. I had a problem with the image being displayed when the URL was encrypted. Try using postimg.org to upload a photo and use one of the unencrypted links.

points
Submitted by TonySGarcia
over 9 years