HTML img title Mouse over to display text mark

 The usage of HTML img title is similar to that of img alt , but the actual purpose is different. img title is used to display the text mark of the picture when the mouse is over the picture. This has the advantage of increasing netizens’ comments on the picture. Awareness can be used to add a little text to the picture.


HTML img title syntax example
<img src="Image URL" title="Image label text to be displayed">
The picture label text to be displayed can be in traditional Chinese. It is recommended that the number of characters not be too many, just simply label the picture.

HTML img title Image title example
<img src="upload/20140906122827.jpg">
<img src="upload/20140906122827.jpg" title="This is the image title text">
The effect of the example
 
We have prepared two pictures in the example. The one on the left does not use img title, and the one on the right uses img title. The results output from the example can be tested. When the mouse is moved to the example image on the left and There will be no effect, but when the mouse is moved to the sample picture on the right, the picture title text will be displayed, which is the actual effect of HTML img title. Remind everyone, don’t write too much text in the title of the picture, it will lose its meaning if it is too long.

Post a Comment

0 Comments