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

Build Your Own Webpage Forum

View Course » View Exercise

117 points
B905e85153b1516de00607c53d3879ce?s=140&d=retro
Submitted by
DoomNut
about 3 years ago

Make sure your img tag has a src attribute! error

I have an error saying "Make sure your img tag has a src attribute!" It has the required attribute, so why am I getting this error message?

<!DOCTYPE html>

IRON MAIDEN

All about my favourite rock group

Iron Maiden are the greatest
Iron Maiden are the greatest
Iron Maiden are the greatest


2 votes

permalink

Sorry, my code didn't post correctly, don't know why. Full code below.
I have an error saying "Make sure your img tag has a src attribute!" It has the required attribute, so why am I getting this error message?

<!DOCTYPE html>
    <html>
    <head><title>IRON MAIDEN</title></head>
    <body>
    <h1>All about my favourite rock group</h1>
    <img src="http://www.ironmaiden.com/inc_fetchnewsdata.php?dtype=newsstoryleadimage&nsid=980&050514190239"/>
    <p>Iron Maiden are the greatest</p>
    <p>Iron Maiden are the greatest</p>
    <p>Iron Maiden are the greatest</p>
    </body>
    </html>

Please help. Thank you in advance.

117 points
B905e85153b1516de00607c53d3879ce?s=140&d=retro
Submitted by
DoomNut
about 3 years ago

1 Comment

5671826195e378c47d000782_659060817 stetim94 about 3 years ago

weird. works fine. maybe is sending wrong info to server. easiest fix -> different browsers


0 votes

permalink

check here how to post code.

2410 points
5671826195e378c47d000782_659060817
Submitted by
stetim94
about 3 years ago


0 votes

permalink

Try this.
<img src="your picture here"/>

831 points
52d433a252f863e668007ac1_836025084
Submitted by
roronoazoro16
about 3 years ago


0 votes

permalink

I had the same problem, read all the search attributes info on the web and tried, but still received the same error code you did.

158 points
8a049bac1140e8b49b7ff93972729e7d?s=140&d=retro
Submitted by
Dchagz
about 3 years ago


0 votes

permalink

So what did you end up doing? Did you resolve the problem?

117 points
B905e85153b1516de00607c53d3879ce?s=140&d=retro
Submitted by
DoomNut
about 3 years ago


0 votes

permalink

I have the same issue. I thought it might be about image format but I've tried multiple types and it still isn't working. If anyone's solved this issue please respond! Thanks!

23 points
Fdf849ce24e8cbc0cbf8d65989b72f00?s=140&d=retro
Submitted by
Ariella Libove-Goldfarb
over 2 years ago

1 Comment

5671826195e378c47d000782_659060817 stetim94 over 2 years ago

please post your code


0 votes

permalink

How??? It just says "Make sure your img has a src attribute!". I cannot fix this help!

38 points
Ffefb552b26b19ec0b55367b977a5d5a?s=140&d=retro
Submitted by
HexCode
over 2 years ago

1 Comment

5671826195e378c47d000782_659060817 stetim94 over 2 years ago

post your html code


0 votes

permalink

I actually just figured it out. Just have to switch browsers.

38 points
Ffefb552b26b19ec0b55367b977a5d5a?s=140&d=retro
Submitted by
HexCode
over 2 years ago

1 Comment

5671826195e378c47d000782_659060817 stetim94 over 2 years ago

little glitch, can happen