The crawler parses the
<img>inside an<a>; it extracts thesrc(for image indexing), thealt(for accessibility and anchor text), and the targethref(for link authority transfer).
graph LR A["<a href='/target/'>"] --> B["<img src='photo.jpg' alt='descriptive text'>"] B --> C[Crawler extracts href] B --> D[Crawler extracts alt] B --> E[Crawler extracts src] C --> F[Link authority flows to /target/] D --> G[Anchor text signal: 'descriptive text'] E --> H[Image indexed under 'descriptive text'] style F fill:#E8F5E9 style G fill:#E8F5E9 style H fill:#E8F5E9
The alt attribute is the bridge between three separate systems: the accessibility tree (screen readers), the link graph (anchor text), and image search (as the image's textual description). One attribute, three consumers.