Developer tools

Web Developer: inspect image alt attributes and page styles

Choose the right image-alt check, inspect page styles reversibly and separate local inspection from external validation.

Get extension

Chris Pederick's Web Developer adds a toolbar menu for inspecting and changing how a page is displayed. I'd use it for a focused check such as finding images without alt attributes or temporarily disabling styles. Apply one command at a time and restore the page before moving to the next question.

A webpage layer peeled back to reveal blue layout outlines, with an orange outlined element and a ruler

Install Chris Pederick's Web Developer

The Web Developer homepage provides the browser downloads. Its Chrome download leads to store ID bfbameneiokkgbdmiekhjnmfkcnldhhm, and the listing associated with chrispederick.com identifies version 3.0.1.

The developer offers separate downloads for Chrome, Edge, Firefox and Opera. This workflow uses Chrome and the English command names from version 3.0.1. Don't assume the older Opera edition or every Firefox feature follows the same instructions.

Open an ordinary website you intend to inspect, then click the extension's toolbar button. The extension menu groups commands under headings such as CSS, Images, Information and Outline. The store describes a toolbar button; opening the browser's built-in DevTools is a separate action.

Separate missing alt attributes from empty ones

Open Images and choose the command that matches the question. Outline Images Without Alt Attributes targets images with no alt attribute. Outline Images With Empty Alt Attributes addresses a different condition: an attribute is present but its value is empty.

A close-up of Web Developer commands for oversized images, images without alt attributes and images without dimensions
Choose Outline Images Without Alt Attributes for missing alt. The separate empty-alt command answers a different question.

That difference matters. The W3C guidance for decorative images calls for an empty alternative, alt="", when an image is decorative and shouldn't add information for assistive technology. An empty-alt outline therefore identifies something to review in context; it doesn't prove that the image needs descriptive text.

For an informative image, consider what the image contributes to the surrounding content before writing its alternative. A menu command can reveal an attribute condition, but it can't decide whether the wording serves the page's purpose. Keep this visual inspection as one part of accessibility work.

The version 3.0.1 command labels also include Display Alt Attributes. Use it when you need to read existing values beside the images. The corresponding implementation inserts those labels into the inspected document; turn the display off after recording the finding.

Turn each image overlay off after the check

The image-feature implementation toggles the stylesheets used for the missing-alt and empty-alt outlines. Use the same command again to remove the outline before enabling another check. For Display Alt Attributes, the off path removes the inserted labels.

I'd note the page and the image involved, then restore the normal display. Several overlays at once can make it harder to tell which condition produced a border or label. Fix the underlying page through your content or development workflow; the inspection overlay isn't that correction.

Disable styles for a focused display check

Under CSS, Disable All Styles lets you inspect the document with its page styling disabled. The version 3.0.1 CSS implementation handles both stylesheets and inline styles, including a path for restoring the saved inline values.

Use a page where you can safely change the display. If a form contains unsaved work, save it before any step that might require a reload. Turn the styles back on with the command when you're finished and check that the normal display has returned.

This gives you a way to inspect the relationship between the document and its styling. It doesn't establish that the page is accessible, nor does a changed browser display update the site's source files. For a personal style you want to keep on a website, the Stylus workflow explains saving a style with a defined site scope.

The Accessibility Developer Guide's CSS-off limitations explain why this view can't replace a screen reader check: content hidden by CSS can become visible, ARIA attributes have no visual representation, and scripts can add new styles afterward. Use the stripped view to investigate document structure, then check the relevant behavior with the appropriate accessibility tools.

Check where an inspection command sends data

The developer's help page explains the broad access used by the extension's features. It says data isn't sent to a third party apart from third-party features such as validators. Treat those external tools as a separate decision from an image outline applied to the page.

Before using an external validator on a private page, check the destination and what the selected command submits. Keep private URLs, credentials and page contents out of a service you haven't authorized to receive them. The Chrome listing's no-collection declaration doesn't erase the help page's exception for third-party tools.

Move off a restricted browser page before troubleshooting

The help page explains that extensions can't run on the Chrome extension store or Firefox Add-ons site. An inactive command on a protected store page doesn't establish that Web Developer is broken. Try the intended inspection on an ordinary page where the extension is allowed to run.

The developer also excludes nightly, alpha, beta and release-candidate browser builds from support. If the same problem occurs in a stable browser, use the support route on the developer's site and include the browser, extension version and affected command. Remove private page data from screenshots and examples.

The developer tools hub groups adjacent tasks. For a Web Developer check, finish with a specific finding, the affected element and the page restored to its normal display.

About Rasmus Senlogan

I build desktop applications, browser extensions and plugins. I created ExtensionTools to organize the tools I've collected and built, and help others find useful software.

Compare your shortlist

Different tools solve different problems. Start with the task.

For current pricing and permissions, check the developer's website and your browser's extension store.

Useful for

Before you add it

Available for

Visit official website

Choose your browser on the developer's website. Review the store listing and requested permissions before installing.