- Courses
- HTML
- HTML top level tags
- <meta>
- Effect of refresh attribute in meta
How does the refresh
attribute in the <meta>
element affect page behavior?
The refresh attribute in the <meta>
element specifies a delay before the page reloads or redirects.
It can be used to automatically refresh the page after a set number of seconds or redirect the user to a different URL. This is done by setting the content
attribute to a time interval, optionally followed by a URL. However, it can be disorienting for users, especially those using assistive technologies.
<meta http-equiv="refresh" content="5;url=https://example.com">