This forum is now read-only. Please use our new forums at discuss.codecademy.com.

HTML Basics Forum

View Course » View Exercise

370 points
3faa2720d35f547b9a42e7b894182670?s=140&d=retro
Submitted by
jflour
almost 3 years ago

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


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>

2946 points
5533b41186f55278520000c6_295543857
Submitted by
tony de araujo
almost 3 years ago


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.

426 points
546956427c82ca612b006b23_629301053
Submitted by
TonySGarcia
almost 3 years ago