redirect from one page to another in html code example
Example 1: html redirect
<!DOCTYPE html>
<html>
<head>
<title>HTML Meta Tag</title>
<meta http-equiv = "refresh" content = "2; url = https://www.tutorialspoint.com" />
</head>
<body>
<p>Hello HTML5!</p>
</body>
</html>
Example 2: html redirect to another page
<script>
function foo() {
window.location.href = url
}
</script>