“alt” attribute on images and “title” attribute on links required in HTML5?

独自空忆成欢 提交于 2019-12-05 17:36:50
unor

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

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

Rajnish

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!