Delaware.gov logo

Adding Alt Text in WordPress


Accessibility compliance requires that every image on a website has alternative, or alt text entered.

This text allows screen reading software to describe the images to those who have visual challenges.

Let’s use this photograph taken over Rehoboth Beach as an example:

Aerial view of a crowded beach with colorful umbrellas, people relaxing on sand and swimming in the ocean, waves crashing onto the shore, vibrant and lively.

Here’s how to add a new photo to a WordPress page and enter the alt text in block editor mode:

Step One

Log in to your WordPress account and open the page to which you want to add the beach photo.

A screenshot showing a WordPress dashboard with a page titled New Page.

Step Two

Select either the blue plus icon at the top left of the dashboard, or the Add Block plus icon on the right of a new line on the page.

A screenshot of the WordPress dashboard with red arrows pointing to the two plus signs that allow the user to add a new content block.

Step Three

If you’ve selected the Add Block plus icon on the right, you will see this menu appear:

A screenshot of the WordPress dashboard showing the arrow to the right having been selected and the word Image typed into the search field.

If you’ve selected the blue plus icon at the top, you will see the menu below.

A screenshot of the WordPress dashboard showing the menu selected with the word Image entered into a search field

In either case, type “image” into the search field. Select Image from the icon menu.

Step Four

You will see the window below open. Select the Media Library option.

Screenshot of WordPress dashboard showing a box with options Upload, Media Library, and Insert from URL.

Step Five

Next, select Upload Files and choose the photo you want to use from your own files.

A screenshot of the WordPress dashboard with Select or Upload Media window open, and a thumbnail image has been selected from a desktop folder.

Step Six

When the image is uploaded, you will see the following window that includes a field on the right titled Alternative Text.

Enter your alt text here, and it saves automatically when you close the window.

A screenshot that shows the thumbnail of the beach scene image along with content and image information and a field where alternative text can be entered.

Review

The alt text we entered for this image reads:

“Aerial view of a crowded beach with colorful umbrellas, people relaxing on sand and swimming in the ocean, waves crashing onto the shore, vibrant and lively.”

Aerial view of a crowded beach with colorful umbrellas, people relaxing on sand and swimming in the ocean, waves crashing onto the shore, vibrant and lively.

How Did We Come Up With That?

Good alt text captures the spirit of the image, rather than describing every single aspect. We chose words that explained the viewpoint angle, the colors and waves in a straightforward way, with a little poetic assessment at the end: vibrant and lively.  That makes sense if an image is chosen to be representational or used as a stock selection rather than a specifically identifiable scene. For instance, the alt text above makes sense in a post about the first day of summer or a holiday weekend.

But what if the photo was instead being used in a story about an increase of harmful UV sun exposure? A more contextualized alt text for the same image might instead read:

“Aerial view of a crowded beach on a sunny day, with many people using umbrellas as their only sun protection.”

What if the photo was used alongside an announcement regarding a new restriction on the use of drones?

“Aerial view high above a crowded beach, taken by a photographer using a remote-controlled drone.”

The goal with alt text is to explain the image in the context of its selection.

How to Add Alt Text to an Image Already on a Page

STEP ONE: Open the published page

STEP TWO: Click the image(s) that need to be checked

STEP THREE: Over to the right under “Block” you will see a field that is labeled “Alternative Text”.

A screenshot showing a photo in the WordPress dashboard with a red arrow pointing to the field on the right where alt text can be entered.

STEP FOUR: Confirm if adequate alternative text is present. If not, add it.

STEP FIVE: Click the blue “Save” button to update the published page.

Things to Remember

  • Keep your alt text description as brief as possible; One or two sentences, no more than 125 characters total.
  • Eliminate extraneous descriptive words such as “An image of…” or “A picture of…” unless the type of image is not a photograph, like a cartoon. (See examples below)
  • Don’t copy and paste content that is also on the web page.
  • Remember the context is what matters, rather than describing every detail.

Alt Text Examples for Different Types of Imagery

When using photographs, think about the specific details shown—such as names, proper nouns, locations, or actions. Reflect on why you selected that image and what message or feeling you want it to communicate to your audience.

A teacher is sitting next to her students and they are all smiling. They have all put their hands up to their eyes like binoculars.

ALT TEXT: A teacher and two young children sit on the floor, making playful expressions by holding their hands to their eyes, mimicking binoculars. They are in a classroom setting.


A memorial wall honoring the men and women of Delaware who served in World War II and the Korean War, featuring a prominent gold star and flower arrangements in front. Silhouettes of attendees are blurred in the foreground.

ALT TEXT: A memorial wall honoring the men and women of Delaware who served in World War II and the Korean War, featuring a prominent gold star and flower arrangements in front. Silhouettes of attendees are blurred in the foreground.


The podium in Legislative Hall in Dover, with the official state seal on the front. The room is lit but empty.

ALT TEXT: The podium in Legislative Hall in Dover, with the official state seal on the front. The room is lit but empty.

For icons consider the purpose of the icon — whether it is to share a logo, to indicate an available action, or to serve as a link to a new page. Any type of non-photograph image should be identified as such. Any icon that links to another action or website should use its alt text in those cases to explain the action rather than describing the icon.

The Great Seal of the State of Delaware, featuring two men, a ship, and a coat of arms with a cow, surrounded by the text "GREAT SEAL OF THE STATE OF DELAWARE" and the years "1704, 1776, 1787."

ALT TEXT: The image depicts the Great Seal of the State of Delaware, featuring two men, a ship, and a coat of arms with a cow, surrounded by the text “GREAT SEAL OF THE STATE OF DELAWARE” and the years “1704, 1776, 1787.”


Government Information Center Logo, the letters GIC in a blue circle with a green arrow symbolizing progress.

ALT TEXT: Logo of the Delaware Government Information Center featuring the letters “GIC” with an upward arrow integrated into the design, enclosed in a circular blue background.


An icon representing a computer printer.

ALT TEXT: (without link) An icon representing a computer printer.

ALT TEXT: (when linked) Print this webpage. [NOTE: Logos or images that link to an action should be explained in the alt text, as opposed to describing the image itself.]


The Facebook logo, a white letter F over a blue background.

ALT TEXT: (without link) The Facebook logo, a white letter F over a blue background.

ALT TEXT: (when linked) Follow our agency on Facebook. [NOTE: Logos or images that link to another site should be explained in the alt text, as opposed to describing the image itself.]

For creative illustrations, the overall purpose or message of the image is more important than the individual details. If the image includes text—such as in a cartoon or an app screenshot—be sure to describe both the key visual elements and the relevant text.

A cartoon of a man and woman looking at a computer screen. The man says "The computer says I need to upgrade my brain to be compatible with the new software.

ALT TEXT: A cartoon of a man and woman looking at a computer screen. The man says “The computer says I need to upgrade my brain to be compatible with the new software.[NOTE: If the caption text is in the image itself, it must be included in the alt text.]


Artistic depiction of psychological manipulation, with hands controlling tangled strings in a human silhouette's mind.

ALT TEXT: Artistic depiction of psychological manipulation, with hands controlling tangled strings in a human silhouette’s mind.


A painting of a cat with cubist style unrealistic angles and patches of dramatic color.

ALT TEXT: A painting of a cat with cubist style unrealistic angles and patches of dramatic color.

For diagrams and other visuals that present specific data, try to summarize the main message and key data points in one or two sentences. If the image is complex, consider adding supporting text nearby or providing a link to the full data for more context.

A word cloud illustration with the words Big Data prominent among others including Information, Management, and Search.

A word cloud illustration with the words Big Data prominent among others including Information, Management, and Search.


Diagram of Soil Layers on Earth, from top down: organic layer, topsoil layer, subsoil layer, parent rock layer, and last bedrock layer.

ALT TEXT:Diagram of Soil Layers on Earth, from top down: organic layer, topsoil layer, subsoil layer, parent rock layer, and last bedrock layer.


3 in 10 Representation of a Proportion human figure icon statistic prevalence

ALT TEXT:An infographic illustrating “3 in 10” with three figures in black and seven figures in white, representing a ratio.

If You’re Stuck

Consider plugging the image into any number of free online AI alt text generators to let them come up with a first draft:

https://popupsmart.com/tools/ai-alt-text-generator

https://teachonline.asu.edu/image-accessibility-generator

https://theblue.social/generate-image-alt-text

But remember, an AI engine doesn’t know the context of the image, so make sure you review and edit your results. Make sure the tone of the alt text matches the context of its surroundings.




+