meta-tags

Show Different Meta Tag Based on Device

风流意气都作罢 提交于 2019-11-30 09:23:41
问题 Running into all kinds of meta tag issues today... I want this meta tag to be displayed on devices that are (max-width: 1024px) and (min-width: 768px)... <meta name="viewport" content="minimum-scale=1.0, maximum-scale=1.0" /> And this meta tag for devices that are (min-width: 320px) and (max-width: 568px)... <meta name="viewport" content="maximum-scale=1.0" /> Whats the best solution to display the appropriate meta tag? Can I use "media="only screen and (device-width: 768px)" for example on a

Video meta data using python

给你一囗甜甜゛ 提交于 2019-11-30 09:23:23
Hi want to extract video meta tags using Python as described. On stackoverflow , I found kaa module which is not supported in Windows. Can anyone suggest me python library that can work on across the platforms? Have you seen Hachoir ? It 'extracts metadata from multimedia files'. The different file format parsers give differing levels of detail, but it might be what you are looking for. Here's an example of metatdata extraction from an AVI file: $ hachoir-metadata pacte_des_gnous.avi Common: - Duration: 4 min 25 sec - Comment: Has audio/video index (248.9 KB) - MIME type: video/x-msvideo -

HTML: Multiple language meta descriptions?

佐手、 提交于 2019-11-30 09:06:53
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" /> 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 you stick to only one language per page and avoid side-by-side translations. Although Google can recognize a

SEO consequences of redirecting with META REFRESH

天涯浪子 提交于 2019-11-30 09:02:42
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 with the meta refreshes. So I'm wondering what the consequences are here? Will the site's search ranking

Get `Meta` attribute `content` by selecting `property` attribute

自作多情 提交于 2019-11-30 04:28:24
问题 In jQuery you can do this: $("meta[property='fb:app_id']").attr("content"); Which will give you the content attribute value from the meta -tag with property attribute "fb:app_id". How can I do this in plain ol' Javascript? Thank you in advance. :-) Kenneth 回答1: Not as elegant as JQuery I'm afraid... var metaTags=document.getElementsByTagName("meta"); var fbAppIdContent = ""; for (var i = 0; i < metaTags.length; i++) { if (metaTags[i].getAttribute("property") == "fb:app_id") { fbAppIdContent =

Viewport Tag Syntax

戏子无情 提交于 2019-11-30 04:04:33
问题 I have been looking on the web and I'm still confused on which works and does not. I see errors on chrome when I use the semi-colon, but the iPhone recognizes it. The comma works also without errors. I'm wondering which one is qualified as the correct way of writing it. Semi Colons - <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> Commas - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user

Why do we need the meta content type tag in HTML head?

只谈情不闲聊 提交于 2019-11-30 03:58:44
Why do we need to include the meta content type tag in HTML head like this? <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> Whenever the webpage is been opened locally (from disk file system), the text/html part will instruct the webbrowser of which type the document is so that it knows how to parse it and the charset=UTF-8 will instruct the webbrowser which character encoding should be used to display the characters on the webpage so that it won't use the platform default encoding (which may not necessarily be the right one which would thus potentially end

Cannot get the new AppLinks to work on iOS or Android

三世轮回 提交于 2019-11-29 23:50:40
Latest Update Below at Update #5 I'm trying to implement AppLinks for BOTH my iOS AND Android apps : http://applinks.org I've done the following: setup a custom url scheme for my app: inacho:// Setup in my App Delegate: - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation Add meta tags to my website at http://www.nachorater.com : <meta property="al:ios:app_store_id" content="581815579"/> <meta property="al:ios:app_name" content="iNacho" /> <meta property="al:ios:url" content="inacho://default" /> I've

Razor Engine - SEO Meta tags

折月煮酒 提交于 2019-11-29 23:08:09
I need to place unique description and keywords meta tags to each page. Tried this. But its not clicking. @{ ViewBag.Title = "Title"; ViewBag.Description = "Test"; ViewBag.Keywords = "Test1, Test2, Test3"; } How do I place the meta tags in MVC 3 Razor Engine? In the layout you could define a section: <head> ... @RenderSection("metas") </head> and in view: @section metas { <meta name="description" content="Test" /> <meta name="title" content="Title" /> <meta name="keywords" content="Test1, Test2, Test3" /> ... } or in the layout: <head> <meta name="description" content="@ViewBag.Description" />

In <head>, which comes first: <meta> or <title>?

别来无恙 提交于 2019-11-29 22:49:53
In head, which comes first: meta or title? I was reading this: This [meta] tag should be the first in the HEAD section, because the server will process the text above as ASCII with no specific format that it only known once the tag is analyzed. http://www.xul.fr/en/html5/html.php Does the standard specify the order? Are there disadvantages in either order? As all of the other answers have already indicated, it usually doesn't matter. Here's a bit more about when it matters and why. First of all, since you asked about standards, you might like to know that the text you are quoting comes from