Simon
Simon

Reputation: 602

"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.

Upvotes: 4

Views: 2580

Answers (3)

unor
unor

Reputation: 96587

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.)

Upvotes: 5

Daniel
Daniel

Reputation: 379

alt attribute on img is always required except when it can't be provided (e.g. when users are allowed to upload images and you can't ask them to upload an alt text...)'; why alt is required, why is good to be provided and when you can leave empty string as value examples here

title attribute on link element is not required; check out link attributes

Upvotes: 0

Rajnish
Rajnish

Reputation: 94

Yes In this version it is necessary too because of HTML5 Validation and Search Engine Optimization.

Upvotes: -3

Related Questions