The correct use of ALT and title attributes in IMG tags-exchange of experience
Source: Internet
Author: User
The IMG tags in the two attributes are Alt and title, for many beginners are still confused about the correct use of these two attributes, of course, part of this is due to IE browser. The correct use of these two properties in addition to improve the image search ability, in the user experience is also very helpful, the following is to say the concept of ALT and title and correct use.
Alt
The essence of this property is that the picture can not be displayed correctly when the role of text substitution, but under the IE6 also played the role of title (mouse put up after the text prompts), IE is the implementation of the method is actually wrong. You should use the Title property if you want to display a prompt when the mouse is slippery. Many beginners have only added ALT attributes to the IMG tag because of faulty booting. So here's another tribute to Ff!.
Title
The user experience is important when the mouse cursor appears as a text hint. Of course not all of the IMG tags are added to this attribute, such as the logo is more important or the user will experience the content of the picture suggested must add this attribute.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.