Search code examples
htmlseotitlerequiredalt

"alt" attribute on images and "title" attribute on links required in HTML5?


Me and other developers at our company are struggling with "title" and "alt" attributes. In the past, we added "title"-Tags to all links for SEO purposes (although some of them were annoing talking about usability) and "alt"-Tags on every image on the site, because HTML4 spec said so.

  • Are "title" and "alt"-Tags still required?
  • If they're not required, do they still have effects on SEO?

Solution

  • Check the HTML specification to see what is/isn’t required:

    (Questions about the SEO effect are off-topic on Stack Overflow. They can be asked on Webmasters SE.)