when i include html tags the redirect doesnt work
Very true. You can't send header information (thats where you're redirecting)
after outputting anything. All you could do is put your meta tags after the redirection code. That would be useless though, because your program will never get to this point.