Skip to content

Title

Use the title attribute to specify a title for a diagram.

src/content/docs/example.md
```d2 title="My custom diagram"
Content -> Website: Astro
```

The title attribute is used as the alt attribute of the generated image:

<img alt="My custom diagram" />