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
-1
votes
1 answer

get the meta data from an advert iframe

I want to put advertising in my site in a similar way as Google Display. I'm using iframe to insert the ads but I'm having problems with the size of it. I don't know why the iframe are sized by default in 300 x 150 no matter the source size. The…
-1
votes
1 answer

Display Post Meta Values in Arrays

I have a following function: function frontend_add_age_group_field ( $fields ) { $fields['event']['event_age_group'] = array( 'label' => __( 'Age Group', 'event_manager' ), 'type' => 'multiselect', 'options' => array( …
Athar K
  • 191
  • 3
  • 18
-1
votes
2 answers

How can I display a thumbnail for my website?

When I send my site to someone on Facebook or Messenger, the preview of a website will have the Facebook logo and the description is blank. It doesn’t show my fav icon it shows the Facebook logo. Example: But if I enter the Twitter URL it displays…
-1
votes
2 answers

Google does not index my multi-language website

We are about to officially launch Cleanfox : www.cleanfox.io The issue that Google indexes the website only in English and when I look at the search results on Google.fr, the indexed content is in English. I have gone through all the required stuff…
justberare
  • 1,003
  • 1
  • 9
  • 29
-1
votes
2 answers

I am trying to covert this normal code to foreach:

I created wordpress gallery using custom metabox and my code is giving right output as i want. But trying to make it in standard way. Original Code $mytheme_gallery_one = get_post_meta( get_the_ID(), 'mytheme_image_one', true );…
-1
votes
1 answer

Change meta description/keywords dynamically with php

Im trying to grab some info from the db and use it as meta desc and keyword. But something isnt working as it supposed to. EDIT: after alot of help i got it semi working. If there is no blogID i want it to fallback on the other part... that part of…
per källström
  • 169
  • 2
  • 11
-1
votes
1 answer

Difference between IE Standard, Compatible & Quirks

I have gone throught many Solutions in stackoverflow but was not able to get. please anyone explain me in simple words 1) what is basic difference between IE Standard, Compatible, Quirks mode and how does it matters? 2) I want to force Webpage to…
Jay
  • 397
  • 1
  • 5
  • 16
-1
votes
1 answer

Facebook OG tags - FB debug says they're in Body, but they ain't

Helping out with a friend's non-profit's Wordpress website.... I have set OG tags for FB shares, but they're not working correctly. When I check them at https://developers.facebook.com/tools/debug/og/object/ I'm told "Your page has meta tags in the…
-1
votes
1 answer

How to detect a meta tag of another site?

I am trying to verify that someone actually owns the site that they claim to own. I need to detect a meta tag that I give them with a unique code. How can I go about doing this?
Dylan
  • 13
  • 1
-1
votes
1 answer

Internet Explorer disable text and text field

In my website text and text field are not editable in IE , when i enable compatibility view in IE ,this thing solved my problem but I want to know that is there a way to active compatibility view by coding or meta tag (This is only happening in…
-1
votes
2 answers

Facebook Debugger Error: Meta Tags In Body

When I check my website in the Facebook Debugger, I get this error: Errors That Must Be Fixed Meta Tags In Body Your page has meta tags in the body instead of the head. >This may be because your HTML was malformed and they fell lower in the parse…
Erlend K.H.
  • 448
  • 6
  • 21
-1
votes
1 answer

Does HTML's Content-Security-Policy protect against inline scripting attacks?

I can understand how it would work with someone injecting then linking an external JS file for example, but what about just straight up scripting in the script tags? You can't tell if it's from another source.
thelittlegumnut
  • 307
  • 1
  • 4
  • 11
-1
votes
2 answers

How to put meta tags for each news post PHP (no wordpress)

Hello i don't look for wordpress plugin or something. This is my php page. blablablalba bla bla bla
user1721620
  • 505
  • 1
  • 6
  • 13
-1
votes
1 answer

Google subpages meta description

As you can see on the this image: http://ahogenhaven.com/circoquestion.jpg I'm trying to make Google show the subpage descriptions underneath the subpages. For example for "Whats new" it's outputting something about an image file, but the meta…
hgnhvn
  • 1
  • 1
-1
votes
1 answer

issues: Google Tag Manager not applied to all pages in WordPress and meta description not showing

I looked at the source code on applicable webpages for both issues and here's what I'm finding: 1) I'm using WordPress and I've installed Google Tag Manager in the header.php right after the opening body tag. The tag appears to be published only on…
1 2 3
99
100