# src-not-empty

> Requires the src attribute of img, script, and link elements to have a non-empty value.

Src of img(script, link) must set value.

Empty of src will visit current page twice.

Level: Error

## Config value

[Section titled “Config value”](#config-value)

* `true`: enable rule
* `false`: disable rule

### The following patterns are **not** considered rule violations

[Section titled “The following patterns are not considered rule violations”](#the-following-patterns-are-not-considered-rule-violations)

```html
<img src="test.png" />
<script src="test.js"></script>
<link href="test.css" type="text/css" />
<iframe src="test.html">
```

### The following patterns are considered violations

[Section titled “The following patterns are considered violations”](#the-following-patterns-are-considered-violations)

```html
<img src />
<script src=""></script>
<script src></script>
<link href="" type="text/css" />
<link href type="text/css" />
<iframe src="">
<iframe src>
```