Image Alt Text vs. Image Title in WordPress – What’s the Difference?
What is the difference?
Many do not recognize that there is a difference between the image alt text and the image title. The image alt text is text inside the image, this is helpful when the image cannot be seen or found. The alt text is a description of what the image is about. An Image title is different from the image alt text, when hovering ones mouse over the image the title shows up. The two are similar in the way they both are useful when the image cannot be displayed. The options for image alt text and the image title allow for the accessibility to your site.
How to add Alt Text to an Image in WordPress
You can add alt text to an image through the Media Library and clicking edit. WordPress also allows you to edit the alt text on an image when inserting an image in the media uploader.
How to add an Image Title in WordPress
The Image Title in WordPress only titles an image in the media library. Adding an image title attribute allows for the popup. If wanting to add an image title attribute via HTML, switch to the text box and add this.
<
img
class
=
"alignleft size-medium wp-image-2204"
src
=
"http://www.example.com/wp-content/uploads/2014/10/bike.jpg"
alt
=
"alternate text for image"
width
=
"300"
height
=
"199"
title
=
"A proper title attribute"
/>
Why you should include an Image Title and Image Alt Text
- Allows search engines to find your image
- Easy access to your site
- Provides explanation
We hope you now have a better understanding of the difference between Image Alt Text and the Image Title.