From 80998b2905a1a250eb0d9d8dd11834acc9bda43c Mon Sep 17 00:00:00 2001 From: Carlos Duarte Date: Thu, 25 Apr 2024 11:51:43 +0100 Subject: [PATCH] Add background info to meta refresh rules (#2159) Co-authored-by: Jean-Yves Moyen --- _rules/meta-refresh-no-delay-bc659a.md | 4 ++++ _rules/meta-refresh-no-delay-no-exception-bisz58.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/_rules/meta-refresh-no-delay-bc659a.md b/_rules/meta-refresh-no-delay-bc659a.md index dd0479b293..b28b47dbab 100755 --- a/_rules/meta-refresh-no-delay-bc659a.md +++ b/_rules/meta-refresh-no-delay-bc659a.md @@ -61,6 +61,10 @@ Not all major web browsers parse the value of the `content` attribute in the sam ## Background +The `meta http-equiv="refresh"` directive is an HTML tag used to instruct browsers to automatically refresh or reload a web page after a specified time interval. This can be useful for updating content dynamically or redirecting users to another page. + +The `content` attribute in the `meta http-equiv="refresh"` directive is used to define the time interval, in seconds, after which the browser should automatically refresh or reload the web page. For example, `content="5"` would instruct the browser to refresh the page every 5 seconds. Careful consideration of the refresh interval is crucial to ensure optimal user experience and accessibility, particularly for individuals who may require more time to consume or interact with web content. + Because a refresh with a timing of 0 is a redirect, it is exempt from this rule. Since this can cause rapid screen flashes it is strongly recommended to avoid this. ### Bibliography diff --git a/_rules/meta-refresh-no-delay-no-exception-bisz58.md b/_rules/meta-refresh-no-delay-no-exception-bisz58.md index 86d8288fd2..e8111ec362 100755 --- a/_rules/meta-refresh-no-delay-no-exception-bisz58.md +++ b/_rules/meta-refresh-no-delay-no-exception-bisz58.md @@ -61,6 +61,10 @@ Not all major web browsers parse the value of the `content` attribute in the sam ## Background +The `meta http-equiv="refresh"` directive is an HTML tag used to instruct browsers to automatically refresh or reload a web page after a specified time interval. This can be useful for updating content dynamically or redirecting users to another page. + +The `content` attribute in the `meta http-equiv="refresh"` directive is used to define the time interval, in seconds, after which the browser should automatically refresh or reload the web page. For example, `content="5"` would instruct the browser to refresh the page every 5 seconds. Careful consideration of the refresh interval is crucial to ensure optimal user experience and accessibility, particularly for individuals who may require more time to consume or interact with web content. + Because a refresh with a timing of 0 is effectively a redirect, it is exempt from this rule. Since refreshing the same page with a time of 0 can cause rapid screen flashes it is strongly recommended to avoid this. ### Bibliography