Questions tagged [meta]

Meta elements are the HTML or XHTML element used to provide structured metadata about a Web page. DO NOT USE this tag for questions about Stack Overflow; post these on meta.stackoverflow.com instead.

Do not use this tag for talking about Stack Overflow. Post your question on Meta instead.

Meta elements are the HTML or XHTML <meta … > element used to provide structured metadata about a Web page. Multiple elements are often used on the same page: the element is the same, but its attributes are different. Meta elements can be used to specify page description, keywords and any other metadata not provided through the other head elements and attributes.

The meta element has two uses: either to emulate the use of the HTTP response header, or to embed additional metadata within the HTML document.

With HTML up to and including HTML 4.01 and XHTML, there were four valid attributes: content, http-equiv, name and scheme. Under HTML 5 there are now five valid attributes: charset was added. http-equiv is used to emulate the HTTP header. name to embed metadata. The value of the statement, in either case, is contained in the content attribute, which is the only required attribute unless charset is given. charset is used to indicate the character set of the document, and is available in HTML5. Such elements must be placed as tags in the head section of an HTML or XHTML document.

Meta element used in search engine optimization

Meta elements provide information about a given Web page, most often to help search engines categorize them correctly. They are inserted into the HTML document, but are often not directly visible to a user visiting the site.

They have been the focus of a field of marketing research known as search engine optimization (SEO), where different methods are explored to provide a user's site with a higher ranking on search engines. In the mid to late 1990s, search engines were reliant on meta data to correctly classify a Web page and webmasters quickly learned the commercial significance of having the right meta element, as it frequently led to a high ranking in the search engines — and thus, high traffic to the website.

As search engine traffic achieved greater significance in online marketing plans, consultants were brought in who were well versed in how search engines perceive a website. These consultants used a variety of techniques (legitimate and otherwise) to improve ranking for their clients.

Meta elements have significantly less effect on search engine results pages today than they did in the 1990s and their utility has decreased dramatically as search engine robots have become more sophisticated. This is due in part to the nearly infinite re-occurrence (keyword stuffing) of meta elements and/or to attempts by unscrupulous website placement consultants to manipulate (spamdexing) or otherwise circumvent search engine ranking algorithms.

While search engine optimization can improve search engine ranking, consumers of such services should be careful to employ only reputable providers. Given the extraordinary competition and technological craftsmanship required for top search engine placement, the implication of the term "search engine optimization" has deteriorated over the last decade. Where it once implied bringing a website to the top of a search engine's results page, for some consumers it now implies a relationship with keyword spamming or optimizing a site's internal search engine for improved performance.

Major search engine robots are more likely to quantify such extant factors as the volume of incoming links from related websites, quantity and quality of content, technical precision of source code, spelling, functional v. broken hyperlinks, volume and consistency of searches and/or viewer traffic, time within website, page views, revisits, click-throughs, technical user-features, uniqueness, redundancy, relevance, advertising revenue yield, freshness, geography, language and other intrinsic characteristics.

Reference

1562 questions
26
votes
1 answer

Django: Creating a Mixin for Reusable Model Fields

I've got a few fields that I want to add to most every model in my project. For example, these fields are "tracking fields" such as a created date, an update date, and an "active" flag. I'm attempting to create a Mixin that I could add to each…
Joe J
  • 9,985
  • 16
  • 68
  • 100
25
votes
1 answer

What is a .meta file and why does Unity create them for all of my assets?

For example, I might have Script.cs, but I would also have Script.cs.meta, or a folder named Sprites and a file named Sprites.meta. Why?
Johnny Dollard
  • 708
  • 3
  • 11
  • 26
25
votes
12 answers

LinkedIn not picking up og:image

For one of my websites I am using Open Graph to enrich posts shared from my website. But LinkedIn is not picking the image specified in og:image. The image is modified for the LinkedIn bot to be 200px X 200px by a simple PHP script. I found some…
Rik Morskate
  • 251
  • 1
  • 3
  • 5
23
votes
6 answers

Compile-time map and inverse map values

Can someone recommend a more elegant way to achieve these compile-time constants? template struct Map; template <> struct Map<0> {static const int value = 4;}; template <> struct Map<1> {static const int value = 8;}; template <> struct Map<2>…
prestokeys
  • 4,817
  • 3
  • 20
  • 43
23
votes
6 answers

window.location (JS) vs header() (PHP) for redirection

using JS : (in tag) using PHP : (in tag) header('Location: https://stackoverflow.com'); end(); Which one I should use ? or another ? and what about using ?
l2aelba
  • 21,591
  • 22
  • 102
  • 138
21
votes
6 answers

error int the Failed to set referrer policy

I'm getting the following error in my chrome console for a Wordpress site I'm working on. Failed to set referrer policy: The value 'http://example.com/comic/' is not one of 'always', 'default', 'never', 'no-referrer',…
Holly
  • 7,462
  • 23
  • 86
  • 140
21
votes
2 answers

What is the purpose of

I saw that many web developers include in tag I don't understand what is the purpose of this meta tags
Mile Mijatović
  • 511
  • 2
  • 4
  • 9
20
votes
3 answers

Does & need to be & in the meta description?

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: Or like this:
Daniel Ramirez-Escudero
  • 3,877
  • 13
  • 43
  • 80
19
votes
2 answers

What is the use of the "msapplication-TileImage" meta tag?

I have come across the following code: Could someone please explain what those meta tags are used for? I can't find any…
yankolo
  • 471
  • 1
  • 5
  • 12
19
votes
2 answers

Can we put two meta tags in HTML?

Can I put two meta tags in a web page? I want to put: so that my web page will not be cached and: so that my web page is…
Coolguy
  • 2,225
  • 12
  • 54
  • 81
17
votes
1 answer

Programmatically creating a CMS/Page in Magento

I saw the following answer to the post Where are Magento static CMS blocks stored? regarding programatically using PHP generating cms/blocks in Magento. I changed the code to the following $newBlock = Mage::getModel('cms/page') …
KyleDugger
  • 208
  • 1
  • 3
  • 9
17
votes
1 answer

What will this do: ?

What will this following tag will do to my browser when a HTML page is loaded?
user3355705
  • 283
  • 1
  • 3
  • 6
16
votes
1 answer

SEO META TAG og:description vs description

I'm trying to get my site to rank on Google Search. I've searched the whole web, literarily on how to make this work. I see that when I search, it doesn't use the description meta tag. When I look at my source code it uses both og:description and…
vemund
  • 1,667
  • 4
  • 29
  • 43
15
votes
1 answer

Side effects of removing "width=device-width" from viewport meta tag when "initial-scale=1.0" is also set

While the tag is unstandardized, it "is respected by most mobile browsers due to de-facto dominance." One downside of it not being a true web standard is detailed documentation is not as available as other standards. The CSS…
romellem
  • 5,792
  • 1
  • 32
  • 64
15
votes
2 answers

Twitter card: summary vs summary_large_image

I read these 2 doc pages: summary and summary-card-with-large-image, but I don't really see the difference. Example:
Basj
  • 41,386
  • 99
  • 383
  • 673