-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Element img is missing required attribute src. #992
Labels
Comments
Try adding src="#".
|
Read: https://github.com/aFarkas/lazysizes?tab=readme-ov-file#broken-image-symbol You could consider doing something similar to...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe your problem/question
When I go to https://validator.w3.org/ to validate HTML of my website, I get an
Error: Element img is missing required attribute src.
You can check your demo page http:https://afarkas.github.io/lazysizes/#examples and see that error.
It is true when I replace img by data-src, it affects the HTML structure. The browser does not see image anymore. Or am I wrong?
Anyway could you please help to get rid of this error?
Thank you
P.S. I have searched but I did not find that issue in the history.
Add tags/keywords
img, error, HTML error, attribute
🤘 No panic: Don't be afraid to ask a question.
The text was updated successfully, but these errors were encountered: