The Difference Between Image Alt Text and Title in WordPress

>The Difference Between Image Alt Text and Title in WordPress
  • image

After uploading an image in WordPress, you can add some details to it, like Title, Caption, Alt Text and Description.

Attachment Details WordPress

In this post, I’m only going to talk about the image alt text and image title, and the difference between them.

Note that the Title you see in the above image is not the one that I’m going to talk about in this post. That one is used by the WordPress Media Library to display your media files.

What is an image alt text

It appears when your image doesn’t

An image alt text, or alternate text, is a small piece of text that should usually describe the image.

For example, for the below image, I would add “Cat in a suitcase” as an alt text.

Cat in a suitcase

The alt text appears when an image is missing or can’t be loaded on your page for whatever reason.

The way it appears depends from theme to theme. Some appear as plain text, some appear in a thumbnail, and so on.

image alt text

It’s also important for SEO

An image alt text also acts like a description for search engines, telling them what’s the image about.

Even though, nowadays, Google uses a variety of sources for information in order to determine what’s an image about, it’s still best if you’d always add an alt text to your images.

You can get some good referral traffic from image search results.

What is an image title

Unlike the alt text, the image title won’t appear if the image can’t be displayed.

Instead, it will show as a tooltip when users hover their mouse cursor over the image.

You can use the title to add a small descriptive text, so that the users can understand the image better, if needed.

WordPress image title

How to add a title attribute to an image in WordPress

Like I mentioned at the beginning of the post, the “Title” field that appears under “Attachment Details”, when you upload an image, is used by the Media Library to display your files.

If you want to add a title attribute that appears when users hover over your images, then you have to use another method.

1. After you inserted the image into your post, in the Visual editor, click on the image and then click the Edit icon.

edit image wordpress

2. Under Advanced Options, in the Image Title Attribute field, add your title.

wordpress image title attribute

3. Press the Update button, and your image will have a title displayed now.

You might also want to read:

That’s a wrap

Hope you liked the post and understood the difference between an image alt text and title in WordPress.

Don’t forget to share to help out others!

You can also follow us on Twitter and subscribe to our YouTube channel.

If you want to start your own WordPress blog, or need a website for your business, our WordPress installation service is at your disposal!

By | 2018-04-13T16:07:46+00:00 April 13th, 2018|WordPress|0 Comments

Leave A Comment

Get our latest posts once a week, right in your inbox
Subscribe
close-image