DIGIT-ARC read-only archive · snapshot: July 23, 2026

HTML META tag error!!

4 posts · originally from https://geek.digit.in/community/threads/html-meta-tag-error.138084/

masterkd
masterkd Original post #1
Mar 17, 2011 at 5:11 AM
i'm using following code using as client pull
Code:
<HTML>
<head>
<TITLE>HTML Learning</TITLE>
<meta http-equiv="refresh" content="5;url=www.google.com">
</head>

but when the page is refreshed after 5 secs it is giving file not found..i've tried other url and local html files too but same error..what i'm doing wrong??
arpanmukherjee1
Mar 17, 2011 at 9:51 AM
@OP CONTENT reloads a DOCUMENT if CONTENT redirects to url it must contain an HTTP header that you are missing out

use:

Code:
<HTML><HEAD>
<META 
     HTTP-EQUIV="Refresh"
     CONTENT="5; URL=*www.google.co.in">
</HEAD>
<BODY>
page will redirect to google.com in 5 sec...............
</BODY>
</HTML>

see:
HTML META Tags
Refresh
Source: Netscape

Specifies a delay in seconds before the browser automatically reloads the document. Optionally, specifies an alternative URL to load. E.g.

<META HTTP-EQUIV="Refresh" CONTENT="3;URL=*www.some.org/some.html">


or (HTTP header)

Refresh: 3;URL=*www.some.org/some.html

In Netscape Navigator, has the same effect as clicking "Reload"; i.e. issues an HTTP GET with Pragma: no-cache (and If-Modified-Since header if a cached copy exists).

Note: If a script is executed which reloads the current document, the action of the Refresh tag may be undefined. (e.g. <body onLoad= "document.location='otherdoc.doc'>)
masterkd
Mar 17, 2011 at 10:24 AM
:oops: that is a really silly mistake..thanks!!
A
aningbo #4
Apr 18, 2011 at 1:17 PM
always use "*" when u making external links