Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple <meta> Tags with the Same Name

Tags:

html

meta-tags

I need to specify multiple copyrights or authors using the <meta> tag. Can I use a <meta> tag with the same name multiple times?

<meta name="copyright" content="Company A" />
<meta name="copyright" content="Company B" />

Will the search engine respect both values? Or, do I need to comma-separate them in one <meta> tag?

Thanks.

like image 814
moey Avatar asked Jun 30 '11 08:06

moey


People also ask

How many meta tags should I use?

Incorporating Meta Keywords in Your Content As a general rule, don't use more than about 10 meta keywords for a single page.

Is meta tag a paired tag?

<meta> tag is not a paired tag. Hence, the given statement is false. The meta tag is a tag in HTML which is used to define metadata about the webpage. It is used to provide additional information for search engine crawlers.

What is the difference between tags and meta tags?

The only difference between tags you can see (on a blogpost, say) and tags you can't see is location: meta tags only exist in HTML, usually at the “head” of the page, and so are only visible to search engines (and people who know where to look).

What are examples of meta tags?

Meta Description Tags, to describe your page on search engines. Robots Meta Tags, to index or not index a page. Nofollow, sponsored and user-generated content meta tags, for outbound links. Twitter cards meta tags ad Open Graph meta tags, for your content shared on social media.


2 Answers

Using multiple meta tags with the same name is valid HTML.

But we don't know how search engines and other readers will interpret them. Either two meta tags will be concatenated or one of them will be ignored/overwritten.

Example: The PHP-function get_meta_tags() will ignore multiple meta tags with an equal name.

To avoid possible problems I would recommend to use a single meta tag:

<meta name="copyright" content="Company A, Company B" />
like image 155
Floern Avatar answered Oct 10 '22 21:10

Floern


If the page contains multiple meta tags of the same type, Google will aggregate the content values. For instance, they will interpret

<META NAME="ROBOTS" CONTENT="NOINDEX">
<META NAME="ROBOTS" CONTENT="NOFOLLOW">

The same way as:

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

More details here:http://googlewebmastercentral.blogspot.ro/2007/03/using-robots-meta-tag.html

I guess most other search engines would handle the meta tags in the same way.

like image 41
DeZeA Avatar answered Oct 10 '22 22:10

DeZeA