> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/better-coverage/check-links.md).

# Check links

Broken links waste journeys and hide content. [**Check links**](/test-steps/check/check-links.md) requests the links on the page (or inside an Element) and fails when their responses do not match the status rule you set.

Use the **Flow Builder** for this walkthrough.

## Add Check links

{% stepper %}
{% step %}

## Open the page

Start with [**Open**](/test-steps/starter/open.md). Continue until every link you want checked is on screen.
{% endstep %}

{% step %}

## Add Check links

From the [**Check**](/test-steps/check.md) family, add [**Check links**](/test-steps/check/check-links.md).

1. Set **Links Types** to **All Links**, **Internal**, or **External**.
2. Set **Target Area** to **Entire Page**, or **Inside Element** when you only want links in one region (choose the [Element](/elements/creating-elements.md)).
3. Set **Status** to the rule that should pass. The default is **No Errors (400-599)**.
   {% endstep %}

{% step %}

## Run and review failures

Start the Run. Open the step in the result to see which links failed the status rule.
{% endstep %}
{% endstepper %}

### Status options

| Status                     | Passes when                                         |
| -------------------------- | --------------------------------------------------- |
| All OK (200)               | Every link returns `200`                            |
| All Successful (200-299)   | Every link returns a `2xx` response                 |
| No 404 Errors              | No link returns `404`                               |
| No 400 or 404 Errors       | No link returns `400` or `404`                      |
| No Client Errors (400-499) | No link returns a `4xx` response                    |
| No Server Errors (500-599) | No link returns a `5xx` response                    |
| No Errors (400-599)        | No link returns a `4xx` or `5xx` response (default) |

{% hint style="info" %}
**Pro tip:** Use **Inside Element** on nav, footer, or a content block when the full page has third-party links you do not own.
{% endhint %}

## Related

* [Check links](/test-steps/check/check-links.md)
* [Test SEO](/better-coverage/test-seo.md)
* [Test page performance](/better-coverage/test-page-performance.md)
* [Choose durable selectors](/better-coverage/choose-durable-selectors.md)
