# Alt Text and Headings reference: Alternative Text -- The Rules
Part of the `alt-text-headings` skill. Read this only when the task reaches these sections.
## Alternative Text -- The Rules
### Rule 1: Every `` Gets an `alt` Attribute
No exceptions. The question is what goes in it.
```html
```
### Rule 2: Describe Content, Not Appearance
```html
```
### Rule 3: Functional Images Describe the Action
When an image is inside a link or button, the alt text describes where it goes or what it does, not what the image looks like.
```html
```
Both `alt=""` and `role="presentation"` work. Use `alt=""` as the primary method; on an `img` it already removes the image from the accessibility tree, so `aria-hidden="true"` adds nothing there. Use `aria-hidden="true"` for decorative inline SVGs and other decorative elements that have no `alt`.
### Rule 5: Complex Images Need Long Descriptions
For charts, diagrams, infographics, and data visualizations that cannot be adequately described in a short alt text:
```html
The CEO reports to the board. Three VPs report to the CEO: VP Engineering (5 teams, 47 people), VP Product (3 teams, 18 people), VP Marketing (4 teams, 22 people)...