---
title: No <meta http-equiv=refresh> | Accessibility Rule
description: Delayed refresh under 20 hours must not be used
source_url:
  html: https://testingbot.com/support/accessibility/web/rules/meta-refresh
  md: https://testingbot.com/support/accessibility/web/rules/meta-refresh/index.md
---
# Ensure \<meta http-equiv="refresh"\> is not used for delayed refresh

Rule ID: meta-refreshUser Impact: criticalGuidelines: WCAG 2.0

The `<meta http-equiv="refresh">` element should not be used to refresh or redirect pages, as it can cause accessibility issues for users with disabilities.

## About This Rule

This guideline ensures that the `<meta http-equiv="refresh">` element is not used to refresh or redirect pages, promoting better accessibility and user control. Adhering to this practice aligns with the following standards:

- WCAG 2.1 (A): 2.2.1 Timing Adjustable
- WCAG 2.0 (A): 2.2.1 Timing Adjustable
- WCAG 2.2 (A): 2.2.1 Timing Adjustable
- Trusted Tester: 8.A
- EN 301 549

## Why It Matters

Automatic page refreshes or redirects initiated by the `<meta>` element can be disorienting for users, especially those relying on assistive technologies. Such actions can disrupt the user's reading or navigation flow, leading to confusion and a diminished user experience. Additionally, users have no control over the timing of these refreshes or redirects, which can be particularly problematic for individuals with disabilities. :contentReference[oaicite:0]{index=0}

## How to Fix

To enhance accessibility:

- **Remove the `http-equiv="refresh"` Attribute:** Eliminate the `http-equiv="refresh"` attribute from all `<meta>` elements in your HTML. 

    <!-- Remove this -->
    <meta http-equiv="refresh" content="10" url="http://www.yourdomain.com/index.html">

- **Use Server-Side Redirects:** If redirection is necessary, implement server-side redirects (e.g., using HTTP status codes 301 or 302) to ensure a seamless user experience without unexpected client-side behavior. 
- **Provide User Controls for Refreshing Content:** If periodic content updates are required, offer users the ability to manually refresh the content or provide controls to pause, extend, or stop automatic updates. 

### Examples

#### Incorrect

Using the `<meta http-equiv="refresh">` element to refresh the page after 10 seconds:

    <meta http-equiv="refresh" content="10">

#### Correct

Implementing a server-side redirect (e.g., using PHP):

    <?php
    header("Location: http://www.yourdomain.com/index.html", true, 301);
    exit();
    ?>

## More Information

- [H76: Using meta refresh to create an instant client-side redirect](https://www.w3.org/TR/WCAG20-TECHS/H76.html)
- [F41: Failure of Success Criterion 2.2.1, 2.2.4, and 3.2.5 due to using meta refresh to reload the page](https://www.w3.org/TR/WCAG20-TECHS/F41.html)

## Other Rules

Interested in other web accessibility rules? Please see these other rules:

- [meta-viewport](https://testingbot.com/support/accessibility/web/rules/meta-viewport)
- [nested-interactive](https://testingbot.com/support/accessibility/web/rules/nested-interactive)
- [no-autoplay-audio](https://testingbot.com/support/accessibility/web/rules/no-autoplay-audio)
- [object-alt](https://testingbot.com/support/accessibility/web/rules/object-alt)
- [role-img-alt](https://testingbot.com/support/accessibility/web/rules/role-img-alt)
