Why is the image tag not working??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
17th Aug 2023, 9:17 PM
Prakhar Mittal
6 Answers
+ 3
It's `src`, not `scr`. And the link you provided leads to a html-page, not an actual image.
17th Aug 2023, 9:27 PM
Евгений
Евгений - avatar
+ 2
Coder You have your heading wrapped in <p> tags. That's semantically incorrect and doesn't do anything useful. You can just delete them. But the <img> and <button> are better to be wrapped with <p> tags.
17th Aug 2023, 11:04 PM
Евгений
Евгений - avatar
+ 1
fixed code: <!DOCTYPE html> <html> <head> <title>The Browser</title> </head> <body> <p><h1>LET'S SEARCH</h1></p> <img src="https://cdn-icons-png.flaticon.com/512/149/149852.png"> <p><h2>What do you want to search today??</h2></p> <button>Search</button> </body> </html>
17th Aug 2023, 10:53 PM
Defying Gravity
Defying Gravity - avatar
+ 1
on mobile, press and hold the image and then press “copy”, on desktop, right click the image and click “copy image address” or “copy image URL”
18th Aug 2023, 3:26 PM
Defying Gravity
Defying Gravity - avatar
0
Defying Gravity How did you obtain the link of the image?? Please tell
18th Aug 2023, 3:20 PM
Prakhar Mittal
0
Defying Gravity Евгений Thank you so much both of you
18th Aug 2023, 3:29 PM
Prakhar Mittal