HTML - <meta Http-equiv
I have been using this:
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> But recently I saw this: <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> What am I supposed to use??? Similar TutorialsHello everyone I am trying to find a solution to a problem I encountered when trying to use the META HTTP-EQUIV tag I created two html files to show what the behavior is doing listed below. the problem I am seeing is when a user presses F5 or Ctrl-F5 possibly even Shift-F5 to manually reload the pages...the meta http-equiv redirect no longer works for IE 6 or IE 7. Is there a solution to this for IE6 and IE7 ? Thank you for any assistance you can provide to this issue. RobertMcol the first is the index.html Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <META HTTP-EQUIV="Refresh" CONTENT="20; URL=timeout.html"> <title>reload page after 20 seconds</title> </head> <body> <p>Open browsers IE and Firefox to this page</p> <p>After 20 seconds the timeout.html page will load</p> <h3>PROBLEM</h3> <p>Open browsers IE and Firefox to this page</p> <p>press the F5 key on both browsers before 20 seconds is up</p> <p>The Firefox browser will redirect to the timeout.html page as expected after 20 seconds</p> <p>The IE browser just sits there..... why ?</p> <p>is there a solution to this issue with IE ? </p> </body> </html> The timeout.html page Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>META HTTP EQUIV TESTS</title> </head> <body> <h2>PAGE TIMED OUT</h2> <p>This page loaded because the META HTTP-EQUIV="Refresh" Content="20; URL=timeout.html" tag worked properly</p> <p>pressing the browsers back button reloads the index.html page and META HTTP-EQUIV appears to work as expected</p> </body> </html> Could you have multiple http-equiv meta elements in one index.htm file, such as: Code: HTML Code: See what I am trying to do here is keep the charset the same, but also have search engines expire the current cache for this site as I have made many changes to my website. It is currently still under construction and I was wondering if this is the best way to "re-cache" the new content. Specifically, the title, description and keywords meta elements. Any assistance with this would be greatly appreciated. Just out of curiosity, if a server returns a page with code 3xx and a "Location: url_1" header, but also includes a <meta http-equiv="refresh" content="0;url=url_2"/> tag, then would the browser be expected to redirect to url_1 or url_2? http://www.colletts.co.uk/winter_dolomites.htm I have the above page that redirects users to my Winter Website - the HTML below isn't valid W3C does anyone know of a better and valid way to get this done? Cheers, Mas HTML Code: <META HTTP-EQUIV="Refresh" CONTENT="2.5;URL=http://www.colletts.co.uk/winter/winter_dolomites.html" /> I have an XML document yourboyvic.com/albumart/now_playing.xml in this XML doc there is an element <time> the objective use this <time> element in http meta refresh code <meta http-equiv="refresh" content="30"> so that <time>+1 injected into content so that instead of content="30" content="whatever number is <time>+1 on yourboyvic.com/albumart/now_playing.xml" in short, a code substitution the end goal, instead of my page refreshing every thirty seconds, my page refresh countdown will be equivalent to when the current song ends plus one second so that the albumart showing is always the current song playing preferably in php+html kinda like this… <?php> $file = file_get_contents("albumart/now_playing.xml"); $time = ""; preg_match("/<time><!\[CDATA\[([^\]]+)\]\]><\/time>/sim", $file, $time_matches); if (isset($time_matches[1])) { $title = $time_matches[1]; } <html> <meta http-equiv="refresh" content="" . $time . ""> </html> ?> Hi, I'm using this code at some website to navigate automatically to another specific website, it works fine, but in Internet Explorer 9, it doesn't... why? Any idea? Try this page if you want: http://www.domisign.com Fire fox will navigate you to another page (which i'm ok with that) but IE 9 doesn't. This is the code i'm using. <meta http-equiv="refresh" content="1; URL=http://www.krayem-group.com/domino/index.htm"> Hi all I am new to html. I came throught tag <META NAME="Author" CONTENT="text"> I don't see any change in my web page including this tag. Can u please tell me what's the use of it. How can I see that information in my web page I'm trying to put a meta tag description on my homepage, but it's not working because when I search for it on google, a different description shows up. This is my head: <head> <meta name="description" content="The reviewing site for New York City landlords. Find out if your landlord is a slumlord before you rent from them. ***** and moan about your existing landlord."> <meta name="Keywords" content="landlord, tenant, landlord tenant, small claims court, new york city, rent, deposit, security deposit, eviction, evict, slumlord, landlord law, tenant law, new york city tenant, rent new york city, landlord new york city, department of housing, sanitation, review, slumlord new york city" /> <title>The Landlord Intelligence Agency</title> <link rel="shortcut icon" href="favicon.ico"> <link rel="icon" type="image/gif" href="animated_favicon1.gif"> <style type="text/css"> a { text-decoration:none } </style> </head> Can anyone tell me what I'm doing wrong here? okey so one of my friends want me to make hes homepage up to date, and when i was looking trough the code i saw this meta tag, I dont realy know what it does so can any one help me?? Code: <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> Hi, I have a website which is in greek. I was making an application to appear in this website but I have a problem with the characters, they appear like ? I had this problem before but was solved by adding a meta in the head part <meta http-equiv="content-type" content="text/html; charset=utf-8" /> the files are in utf-8 format and this meta exists in my head part but they still appear like "?" I would appreciate it if someone could advice me what to check. I can also provide a link, but I will send it by personal message to the interested. Thanks in advance, Dinos Iv just created a website using CoffeeCup HTML Editer, but this is the first website which i have created using a HTML Editer instead of a sitebuilder provided by the hosting. In the sitebuilder i used for my old site, it provided what was called"SEO Wizard" which wrote the meta tags in the head for me. Now im using this HTML Editer, i have to write it myself.. On the template i used to start off, it provided the following as a start for me to enter the rest. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="Description" content="Your Title"> <meta name="author" content="CoffeeCup Software, Inc."> <meta name="Copyright" content="Copyright (c) 2010 CoffeeCup, all rights reserved."> <title>Your Title</title> <style... I can see myself that i need to add some sort of meta tag for my "Keywords". Im also not sure if there is any other codes i need to add, or removed if needed. Could someone help me please? Thanks! Note: Im not asking someone to add my keywords for me, etc.. lol. Im just looking for help on how to write it & then i can fill in the "Specific Stuff" for my site. Ok... I may have posted this in the wrong section but who cares anyway... I wonder if there is a way to add this <META HTTP-EQUIV="imagetoolbar" CONTENT="no"> "meta-thing" to all my HTML pages in my site. Can you add it to an external file or something??. The main point is that I don't want to include it in every single HTML file. Hi, I noticed that if you insert meta tags into html somewhere in the body tags, the browser still recognizes them. I know its bad practice, but do search engines frown on putting meta tags in the body INSTEAD of the head? Cheers, Doug The code in a script I'm using shows this code on the main page: Code: <meta name="Description" content="[var.description;htmlconv=no;]"> <meta name="Keywords" content="[var.tags;htmlconv=no;]"> Shouldn't their be a line "meta tags=" for the keywords? Or will replacing the word "Keywords", in the code above, with some keywords, do the trick? Or do I need to add keywords elsewhere? Thanks Hi I'm dealing with a little problem here and no one seems to know the right answer. I want google to show my site on the first row, when someone types in the domain name in the search bar(The domain name, not some random search options, like cheese or cutlery). The domain name is unique and doesn't have any similar counterparts on the internet. Still it doesn't show up, even as further down as at page 10. Does anyone have an idea how i can fix that. Should I use some sort of meta-tag type or is there a different, more efficient solution. Thanks Can Someone please explain the relevance of using x-meta-robots? <meta name="robots" content="index,follow" /> Cheers! MAs I hate SEO Hey! I have run my site through the W3C validator and have a bunch of errors coming up for problems supposedly within my meta keyword and meta description tags. I've been trying to figure out why it's not liking what i have but can't figure it out. If anyone could help me out i would really appreciate it! My webpage is paleocookbook.com and the problems i'm having appear when doing a quick validator check at http://validator.w3.org Any help is greatly appreciated. So I'm using CSS and the same header is used on every page. It includes all meta info, nav bar, company logo, etc. I read at the SEO opt sites that Meta data should be specific for each page to improve SEO (search engine optimization - google ratings). Those two seem to be at odds with each other: CSS good, but use different META info for every page. for example this is my code for an average page: Code: <?php require 'head01.html'; // call HTML headers, same for all require 'center11.html'; // call center code - another page require 'footer01.html'; // call footer code - same for all ?> CenterXX differs for every page but not Header01.html which has my META data. help. kc |