meta-tags

issue with viewport meta tag

一个人想着一个人 提交于 2019-12-25 03:59:29
问题 I need my website to adjust itself according to the device. I used the following viewport meta tag: <meta name="viewport" content="user-scalable=no,width=device-width, height=device-height, minimum-scale=0.1, maximum-scale=0.65" /> It works alright on iPhone. but on android it looks it doesn't responded to it at all even when I change the scale values. Is there a different tag for android? 回答1: You should use the same tag for Android, but there are a few differences how different platforms

Is it better to use same or an alternative description meta tag for pages on the same domain?

风流意气都作罢 提交于 2019-12-24 21:33:04
问题 Lets say I have a site for a product. Site have three menus: Main,Product,Contact It is a good idea to each one have its own <meta name="description" tags with description for its content? Basically this is a SEO question. Does it have any affect on SEO? Or it is better to use one static description for all the site? For example: Main: <meta name="description" content="This is my product site, you can check my product or contact me" /> Product: <meta name="description"content="This is the

passing meta data in body part

孤者浪人 提交于 2019-12-24 16:15:44
问题 I use php for coding. Is there a way to pass meta in the body part. so that it is recognized by search engines. I know meta tags needs to be passed in head. but since i am generating pages dynamically . Only body part get changed in every page. 回答1: <meta> tags must go in the <head> - per the HTML specification. Refactor your templates so you will be able to add <meta> tags dynamically in the head. It shouldn't be a problem. 回答2: The html specs specify that meta tags belong in the head

Language Format issue - Meta tag

被刻印的时光 ゝ 提交于 2019-12-24 14:36:40
问题 I am using French and English in my website. I have two links like "Française | English" and when user selects "Française" i place the following in header <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <meta content="fr" http-equiv="Content-Language"> and when user selects "English" i place the following in header to show respective languages <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta content="en" http-equiv="Content-Language"> The

regex to pull all attributes out of all meta tags

微笑、不失礼 提交于 2019-12-24 14:09:48
问题 I'm trying to pull meta tags out of a html page, to compare two pages (live and dev) to see if they're SEO is the same after a site redesign/refactor. I need to compare title, meta tags (description, opengraph etc.), h1's, our analytics (Omniture), and our ad tags (doubleclick) are all the same. My problem is getting meta tags http://php.net/manual/en/function.get-meta-tags.php only works if they have a name= attribute, same with "mariano at cricava dot com"'s solution. I don't want to

Why is Google showing a different title for this website?

筅森魡賤 提交于 2019-12-24 10:38:30
问题 Im am working on SEO for www.proshred.com/richmond While researching keywords, using Google, I searched for "richmond shredding services". I found this title linked to the homepage: Richmond Shredding Services - Proshred . This is the wrong title. Looking at the source code, the correct <title> is Richmond Mobile Shredding | Shredding Paper | Proshred Upon further investigation I found this meta tag: <meta content="Richmond Shredding Services" about="/richmond/richmond-shredding-services"

Redirecting to another page meta tag

走远了吗. 提交于 2019-12-23 18:24:24
问题 If I want to redirect to another page in my HTML file, do in have to place the meta tag in the head or can I place it at the top of the file before the DOCTYPE? Thank you. 回答1: You can't place a meta tag above the DOCTYPE. The DOCTYPE must always be the first element in an HTML document, and meta tags must only be placed in the head . Documents must consist of the following parts, in the given order: Optionally, a single "BOM" (U+FEFF) character. Any number of comments and space characters. A

How to search Google for <meta name=“author”>

若如初见. 提交于 2019-12-23 12:38:57
问题 Is it possible to search Google for all sites built by a specific author declared by a meta author tag? eg http://www.google.com.au/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=v6J&q=%3Cmeta+name%3D%22author%22+content%3D%22Fred+Smith%22%3E&btnG=Search&meta= 回答1: Looks like the answer is no: "Google, Yahoo, and MSN do not index the <meta> author tag." (source) 来源: https://stackoverflow.com/questions/942575/how-to-search-google-for-meta-name-author

Should I remove trailing slashes in meta tags?

这一生的挚爱 提交于 2019-12-23 07:27:59
问题 W3c markup validation is asking me to remove trailing slashes on my page. Is this correct? Aand will my page still be compliant in all browsers? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <meta http-equiv="content-style-type" content="text/css" **/**> 回答1: That is correct. For HTML 4.01 you shouldn't have trailing slashes (self-closing tags) for meta elements and I believe <link> elements if memory serves me correctly. xhtml requires

Should I remove trailing slashes in meta tags?

百般思念 提交于 2019-12-23 07:27:02
问题 W3c markup validation is asking me to remove trailing slashes on my page. Is this correct? Aand will my page still be compliant in all browsers? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <meta http-equiv="content-style-type" content="text/css" **/**> 回答1: That is correct. For HTML 4.01 you shouldn't have trailing slashes (self-closing tags) for meta elements and I believe <link> elements if memory serves me correctly. xhtml requires