HTML img tag in the alt

E.g

<img src="..." alt="..." class="img-rounded"> 方形
<img src="..." alt="..." class="img-circle"> 圆形
<img src="..." alt="..." class="img-thumbnail"> 相框

alt attribute is a mandatory attribute which provides alternate text when an image can not be displayed.

Suppose the following reasons users can not view the images, alt attribute to provide alternative information to an image:

    speed is too slow
    src attribute errors
    browsers disable image
    you are using a screen reader

alt attribute <img> tag specifies alternative text when the image can not be displayed for the user to disable or image is displayed, instead of the image content displayed in the browser.

We strongly recommend that you use this attribute in each image document. Even though the image can not be displayed, the user can still see some information about what's missing. And for people with disabilities, alt attribute is often the only way they understand image content.
----------------
Disclaimer: This article is CSDN blogger "This child who understand Ha 'original article, if infringement please contact me seconds to delete, I use only as a note
original link: https: //blog.csdn.net/zhaomengszu/article/details/87801341

Guess you like

Origin www.cnblogs.com/lsswudi/p/11615569.html