How do we insert an image named img.jpg present in the folder outside the parent folder?

<img src="../img.jpg">

<img src="img.jpg">

None of the options

<img src="parent/img.jpg"

1 answer

None of the options provided answer the question correctly. To insert an image named "img.jpg" present in a folder outside the parent folder, you would use the following code:

<img src="../img.jpg">

This code uses the "../" notation to indicate that the "img.jpg" file is located in a folder one level above the current parent folder.