# noSvgWithoutTitle

Rule `biome/noSvgWithoutTitle`. Enforces the usage of the `title` element for the `svg` element.

- Source: biome
- Technologies: React, Accessibility
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #556 by reach, #191 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `a11y/noSvgWithoutTitle` | yes | no | group a11y, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-svg-without-title/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<svg>foo</svg>
```

```jsx
<svg>
    <title></title>
    <circle />
</svg>
```

```jsx
<svg>foo</svg>
```

### Correct: the rule accepts this

```jsx
<svg>
    <title>Pass</title>
    <circle />
</svg>
```

```jsx
<svg role="img" aria-labelledby="title">
    <span id="title">Pass</span>
</svg>
```

```jsx
<svg role="img" aria-label="title">
    <span id="title">Pass</span>
</svg>
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "a11y": {
        "noSvgWithoutTitle": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noSvelteUselessDerivedBy](https://lintradar.dev/rules/biome/noSvelteUselessDerivedBy.md): Disallow `$derived.by()` when `$derived()` is sufficient.
- [biome/noTailwindConflictingClasses](https://lintradar.dev/rules/biome/noTailwindConflictingClasses.md): Disallow Tailwind CSS classes that set the same CSS properties on an element.
- [biome/noSvelteUnnecessaryStateWrap](https://lintradar.dev/rules/biome/noSvelteUnnecessaryStateWrap.md): Disallow unnecessary `$state` wrapping of reactive classes.
- [biome/noTailwindLegacyImportant](https://lintradar.dev/rules/biome/noTailwindLegacyImportant.md): Disallow the leading `!` important modifier in Tailwind CSS classes.
- [biome/noSvelteObjectInTextMustaches](https://lintradar.dev/rules/biome/noSvelteObjectInTextMustaches.md): Disallow objects, arrays, functions, and classes in Svelte text mustaches.
- [biome/noTailwindLegacyUtilities](https://lintradar.dev/rules/biome/noTailwindLegacyUtilities.md): Disallow Tailwind CSS utility classes that Tailwind CSS only keeps for backward compatibility.

---

Web page: https://lintradar.dev/rules/biome/noSvgWithoutTitle. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
