+ 1

Fix the following code

<p> <img src ="http://image'> </p>

16th Jun 2025, 7:49 PM
Adhm Ayman
Adhm Ayman - avatar
9 Answers
+ 2
Adhm X , the quotation marks are not matching. I suggest you either use BOTH single (' ') or BOTH double (" ") quotes. I would also like to inform William Wong that the <img> tag is an empty tag and hence does not require a closing tag (i.e. </img> is not required, though it does not really interfere with the program execution). Hope this helps.
16th Jun 2025, 11:19 PM
Ushasi Bhattacharya
+ 3
Someone just asked this last week. Was that you?
16th Jun 2025, 7:56 PM
Zvi
Zvi - avatar
+ 3
William Wong Good catch on the mismatched quotation marks! But the img tag does not require a closing tag 😉
16th Jun 2025, 10:45 PM
Keith
Keith - avatar
+ 2
Yes
16th Jun 2025, 8:00 PM
Adhm Ayman
Adhm Ayman - avatar
+ 2
Why didn't you answer the question?
16th Jun 2025, 8:01 PM
Adhm Ayman
Adhm Ayman - avatar
+ 2
Please explain your question better. What are you trying to do? http://image is not a fully qualified URL.
16th Jun 2025, 8:17 PM
Keith
Keith - avatar
+ 2
your code is <img src ="http://image'> Supposing the URL is correct, the correct line would be <img src ="http://image"></img> You had an incorrect quote and forgot the closing tag.
16th Jun 2025, 10:41 PM
William Wong
William Wong - avatar
+ 1
Because this isn’t for cheating on quizzes. This section is for people trying to learn how to code and get stuck so they ask their doubts here.
16th Jun 2025, 10:38 PM
Zvi
Zvi - avatar
+ 1
Zvi The section is called questions, but learning can be done Feed in the community
16th Jun 2025, 11:21 PM
Adhm Ayman
Adhm Ayman - avatar