WP Accessibility contains a number of ways to help enforce the use of alt attributes in post content.
In the classic editor, images with alt text that is either suspicious or missing will be shown with a label indicating that the image is missing alt text. If the ‘decorative image’ toggle is checked, this rule will be ignored.
Block Editor
In the block editor, the decorative image label doesn’t have an effect, although it will still be saved as a marker in your media library. All images without alt text will be indicated in the block editor.
Browser Support
The attribute labeling here depends on the :has
selector in CSS, which is not supported in IE11 at this time. In Firefox, it is available but depends on enabling the layout.css.has-selector.enabled
feature flag. In unsupported browsers, only the outline will be visible, and not the text label.