@Kamlesh0007
Posted
When referencing an image using the src attribute, it's important to provide a valid URL or relative path to the image file. In your case, you have provided an absolute file path (D:/faybas.github.io/image-qr-code.png), which will not work in the context of a web page.
To ensure that the image loads correctly, you should use a relative path or a valid URL. If the image is located in the same directory as your HTML file, you can use a relative path like this:
<img src="./image-qr-code.png" alt="QR Code"/>
Make sure that the image file (image-qr-code.png) is located in the same directory as your HTML file.
and also add backgroundcolor to body tag
body
{
background: hsl(240, 100%, 98%);
}
Marked as helpful
@faybas
Posted
@Kamlesh0007 Thanks a lot, ur solution worked
@Kamlesh0007
Posted
@faybas wlc