Web features explorer

Alt text for generated content

Newly available since 2024-07-09
Tags: css Groups: CSS

The / notation in content CSS property values adds alternative text to generated content. For example, the content: url('upvote-icon.svg') / 'Upvote' declaration adds accessible 'Upvote' text to the SVG icon. Also known as alternate text.

Learning resources on MDN

Browser support