meta-tags

Meta-refresh doesn't work?

泄露秘密 提交于 2019-11-29 22:09:56
I have a page using something along the lines of <meta http-equiv="refresh" content="0;url=http://example.com/" /> but for certain users on a certain workstation this doesn't work. The is in IE. Is there something wrong with cookies or a setting somewhere which would cause this to fail? I never heard of such a thing. The problem is that when IE sees this: <meta http-equiv="refresh" content="0;http://www.example.com" /> it expects the contents attribute to contain a number. The only time IE will check for a URL is if the content attribute contains "URL=" so the redirect that is most usable in

Is it still valid to use IE=edge,chrome=1?

给你一囗甜甜゛ 提交于 2019-11-29 21:12:14
I read Chrome Frame closed last month, I thus tried to understand what it'd mean for the X-UA tag and after 3 hours of research I still didn't find the answer I'm looking for, my question is the following : Is it still valid nowdays to use IE=edge,chrome=1 or should I stop at IE-edge from now on ? Or what would be the best pratice to do regarding X-UA, should it be avoided ? <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> serves two purposes. IE=edge : specifies that IE should run in the highest mode available to that version of IE as opposed to a compatability mode; IE8 can

Using a different image for microdata that isn't displayed in the article?

允我心安 提交于 2019-11-29 16:42:05
I'm working on a website that has a bunch of articles. I'm looking to find a way to add an image that is invisible without putting it inside a hidden div. When users add an article, there is a "main" image of the specific proportions that the users upload (which I'd like to use for microdata). There are also other images that get tossed in a carousel that they upload. At the moment the only way I can get the microdata testing tool to use my image is by doing the following: <div class="hidden"> <img itemprop="image" src="link/to/image.jpg" /> </div> What I'd like to do is use a meta tag, but

SEO consequences of redirecting with META REFRESH

落爺英雄遲暮 提交于 2019-11-29 14:04:52
问题 Question: What are the SEO consequences of redirecting web traffic with a META REFRESH? Details: I'm working with an old static site that's migrating to a new address. I'm redirecting traffic to the new site using meta refreshes on all static pages, like this: <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.newsite.com/"> Of course, I'd rather write the redirects directly into an Apache file (or an .htaccess file), but due to some server weirdness that's beyond my control, I'm stuck

HTML: Multiple language meta descriptions?

泪湿孤枕 提交于 2019-11-29 14:00:44
问题 How can I set two language meta descriptions to my website? Is this code google valid? <meta name="description" lang="en" content="english blablabla" /> <meta name="description" lang="hu" content="hungary blablabla" /> 回答1: Check this post from Google Webmaster Central Blog: http://googlewebmastercentral.blogspot.com.es/2010/03/working-with-multilingual-websites.html " Google tries to determine the main languages of each one of your pages. You can help to make language recognition easier if

Changing the content of meta refresh does not change refreshing time

谁都会走 提交于 2019-11-29 12:12:58
I have a meta http-equiv="refresh" inside the <head> . <head> <meta name="mymeta" http-equiv="refresh" content="2" id="myMeta"> </head> Using Javascript , I'm trying to change the content attribute of this meta tag. var myMeta = document.getElementById("myMeta"); myMeta.content="10"; When I display the content via document.write(myMeta.content); , I get the changed value which is 10 , however, the meta tag will keep refreshing each 2 seconds. I have tested this both in Firefox and Opera. FULL PAGE <!DOCTYPE html> <html> <head> <meta name="mymeta" http-equiv="refresh" content="2" id="myMeta">

Javascript To Change Metadata / Metatags Dynamically

烈酒焚心 提交于 2019-11-29 11:36:35
I'll describe what I'm trying to accomplish and if it seems that my method is dumb please feel free to let me know: I have a page with a video gallery and a flash video player iframe. When the user clicks on a video thumbnail, it starts to play in the frame. Users can also go to the page with a specific video loaded into the iframe by appending the filepath to the end of the url - blabla.com/videogallery?videofilepath. I set this up so that videos could be shared easily. I want to be able to add Share buttons for facebook/twitter, but I cannot get them to work and present themselves properly

How can I fix the webpage orientation to Portrait only for iPad and iPhone?

巧了我就是萌 提交于 2019-11-29 10:51:56
I have developed a web app/website for the iPad but I can not get it stay in a fixed portrait view only. I do not want it to rotate and work in landscape mode, because of the way the app has been designed. I've tried various configurations of the viewport settings but that still has not worked. I'm not very good at JavaScript so a copy paste option would be best or something in CSS/HTML. Thanks in advance. DaGaMs Unfortunately, there is no way to explicitly "lock" the orientation of a web-app in Mobile Safari, as you can also see from the link that Alex posted above in the comment: How do I

Does & need to be & in the meta description?

半腔热情 提交于 2019-11-29 09:34:44
I'm inserting content which has the & sign. I would like to know if it's needed to insert it as & so this sign is read correctly. Like this: <meta name="description" content="lorem lorem S&B lorem lorem"> Or like this: <meta name="description" content="lorem lorem S&B lorem lorem"> You always represent an ampersand in HTML content as & or & , never a bare & . This includes both text between an element's tags, as well as attribute values. No exceptions. This is because & itself denotes the start of an HTML entity reference (as seen above) and can often cause problems when appearing in the

How to test Smart App Banner Urls on in Dev environment

狂风中的少年 提交于 2019-11-29 05:37:07
问题 I'm wondering if it's possible to test iOS 6's smart app banners' app-argument URL parameter on dev builds of an iOS app. It appears the Open option in the banner only appears if the application is downloaded from the App Store. 回答1: What worked for me was to download my application from the appstore, and then overwrite it using a build from XCode. This worked and allowed me to debug the smart banner feature using my current build. This won't work from the simulator, you need to use a device.