You can verify this yourself on the HTML5 validator . But since you ask your question in the SEO section, I want to draw your attention to the fact that from these these elements alt and title search engines take information for the so-called Long Tail . Of course, if these elements are valid. That is, by correctly coding these elements you contribute to the promotion of your page / site.