@Zy8712
Posted
Your site looks pretty good. To answer your question, I personally think its better for you to use a regular <img> tag to insert the QR code. The reason being that the QR code is apart of the page's main content so it should be inserted using the img tag, whereas background-image is usually used for things that are not apart of the page's main content.
Additionally, when you use an <img> tag it allows you to use an "alt" attribute to describe your image. This may be useful when the image fails to load, and the alt text appears to let users know that something failed to load. Also, the "alt" text can be detected by screen readers, whereas background-image can't be detected. So its important for accessibility purposes.
Marked as helpful
@maliabadziukh
Posted
@Zy8712 Thanks for your feedback! I had a feeling it would be bad for SEO/ accessibility but wanted to check anyway. Updated my solution!