@shanie.wisozk
To redirect a webpage to open in a new tab using the meta
tag, you can add the following code to the <head>
section of your HTML document:
1
|
<meta http-equiv="refresh" content="0;url=https://example.com" target="_blank">
|
Explanation:
- The http-equiv attribute specifies the HTTP header field to emulate. In this case, "refresh" simulates an HTTP refresh redirect.
- The content attribute specifies the delay (in seconds) before performing the redirection. Here, 0 means no delay.
- The url attribute provides the destination URL where the webpage should be redirected.
- The target attribute set to "_blank" ensures that the target URL opens in a new tab.