I need urgent help for know one thing : I want urgent help!!!!
Today my exam paper was showed and I failed in ICT subject. I wrote 2 question's answer about html sloving!(or u can say I had to write HTMl for those question in answer paper). 
In the question's detail there was wrote:-
A boy designed a web page where he used a 500*400p image named sunset.png . If the browser can not able to show that pic then it will show "missing" text in the browser window. Then he showed this to his friend. Then his friend do something so when click in the picture then he will go to youtube.
Question no.1:-
Write the html code that the 1st boy used.
Question no.2:- 
Write the HTML code that 2nd boy used.
for the 1st question I wrote:-

 

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title>My webpage</title>
    </head>
    <body>
    <p><img src="sunset.png" width="500" height="300" alt="missing"></p>
    </body>  
    </html>
for the 2nd question I wrote:-

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title>My webpage</title>
    </head>
    <body>
    <p> <a href="https://www.youtube.com"> <img src="sunset.png" width="500"height="300" alt="missing"> </a> </p>
    </body>
    </html>

My sir told my mistook was <p> tag. I can not use paragraph tag outside of image. so, Out of 7 I got "0" marks.
So, I want to know that was true? Then why the browser showing the pic? 
Plz, comment to help me out and plz if u have any reference that day u can use <p> outside of <img> tag plz give me that site's link too. so, I can take screen shot and show him.
Plz help me out! Or, I will be fail in result card!!!
Sorry for disturbing and wasting ur time ....