Will meta redirect work outside of html header section?

<meta http-equiv="Refresh" content="5; url=http://www.quackit.com/html/tags.cfm">

Can I put this at the begining of my html body tag section?  I thought I've see this outside of the Header section and it still work.  thank you.
lapuccaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Gurvinder Pal SinghConnect With a Mentor Commented:
another way to do the same thing would be put a timer event in the script tag

<script>
  setTimeout(function(){
   location.href = location.href;
}, 3000);
</script>

you can add above snippet anywhere in the html document, and it will simply reload the current page every 3 second
0
 
Gurvinder Pal SinghCommented:
But why do you want to put it in body tag, when it works in head tag?
0
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
Even if it works, it belongs in the <head> section.  Why do you want to put it somewhere else?  Any function that is looking for it is looking in the <head> section.  Browsers and servers don't have to pay attention to code that is not formatted right although they often try to make it work anyway.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
lapuccaAuthor Commented:
We're using CMS system.  For some pages I want to redirect.  I don't want to put it at the header of the common master page.    But isn't it a common practice to put in a redirect message in case the redirect doesn't work out in like a minute or 2?  Maybe it's because of type of browsers issue?
0
 
Dave BaldwinFixer of ProblemsCommented:
No, it's not a common practice.  Never seen it.
0
 
lapuccaAuthor Commented:
I meant, a common practice to put in a web page with message to click somewhere in case the redirect doesn't take place.  I see that several times before.  I'm sure you have too.  

Anyway, back to the meta tag for http-equiv.  Would that work if I put in outside of the header section and as part of the body section?  Thank you
0
 
Dave BaldwinFixer of ProblemsCommented:
The only place I have seen anything like that is for downloads.  I guess I don't know about the redirect because I've never done it that way.
0
All Courses

From novice to tech pro — start learning today.