Meta elementy sú HTML alebo XHTML elementy používané na poskytovanie štruktúrovaných metaúdajov o webovej stránke. Tieto prvky (elementy) musia byť umiestnené ako značky v head časti HTML alebo XHTML dokumentu. Meta elementy možno použiť na zadanie popisu stránky, kľúčových slov a ďalších metadát ktoré nie sú poskytované prostredníctvom iných head prvkov a atribútov.
Meta element má štyri platné atribúty: content, http-equiv, name a scheme. Z nich, len content je povinný atribút.
Meta elementy poskytujú informácie o danej webovej stránke, najčastejšie na pomoc vyhľadávačom kategorizovať ju správne. Sú vložené do HTML dokumentu, ale často nie sú priamo viditeľné pre užívateľa navštevujúceho stránky.
Sú zamerané na odbor marketingového výskumu známeho ako optimalizácia pre vyhľadávače (Search Engine Optimization - SEO), kde sa skúmajú rôzne metódy, aby používateľove stránky mali lepšie umiestnenie vo vyhľadávačoch. Koncom deväťdesiatych rokov, vyhľadávače sú závislé na metadátach pre správne triedenie webovej stránky a webmasteri sa rýchlo naučili obchodný význam aký majú práve meta elementy, pretože často vedú k vysokému hodnoteniu vo vyhľadávačoch - a teda vysokej prevádzke na webových stránkach.
Keďže prevádzka vyhľadávačov dosiahla väčší význam v on-line marketingových plánoch, vznikali pozície konzultantov ktorí sa dobre vyznajú v tom, ako vnímajú vyhľadávače internetové stránky. Títo poradcovia používajú rôzne techniky (legitímne a iné) na zlepšenie poradie pre svojich klientov.
Meta elementy majú výrazne menší vplyv na výsledkoch vyhľadávačov dnes, ako tomu bolo v roku 1990 a ich užitočnosť významne znížilo ako sa roboti vyhľadávačov stávali prepracovanejšími. To je čiastočne spôsobené takmer nekonečným opätovným výskytom (keyword stuffing) meta elementov a / alebo na pokusy bezohľadných konzultantov manipulovať poradím stránok (spamdexing) alebo inak obchádzať algoritmy na určovanie poradí vo vyhľadávačoch.
Kým optimalizácia pre vyhľadávače môže zlepšiť výsledky vyhľadávania, mali by spotrebitelia týchto služieb dávať pozor, aby zamestnávali iba renomovaných poskytovateľov. Vzhľadom k mimoriadnej súťaži a technologických remeslách potrebných pre najvyššie umiestnenie vo vyhľadávači, dôsledky termínu "optimalizácia pre vyhľadávače" sa zhoršila v priebehu posledných desiatich rokov. Tam, kde kedysi predpokladané uvedenie internetovej stránky na začiatok vyhľadávače stránky s výsledkami, pre priemerného spotrebiteľa sa teraz predpokladá vzťah s kľúčovým slovom spamový a optimalizácia stránok interné vyhľadávač pre lepší výkon.
Najvýznamnejší roboti vyhľadávačov majú väčšiu pravdepodobnosť vyčísliť ako existujúce faktory, ako je objem prichádzajúcich odkazov z internetových stránok, množstva a kvality obsahu, technickú dokonalosť zdrojového kódu, pravopisu, funkčné v. rozbité hypertextové odkazy, objem a konzistenciu vyhľadávania a / alebo Prehliadač prevádzky, čas do webovej stránky, zobrazenie stránok, opakované, "click-priechodky, user-technické vlastnosti, jedinečnosť, redundancia, relevantnosť, príjmy z reklamy výnos, sviežosť, zemepis, jazyk a ďalšie vlastné vlastnosti.
The keywords attribute was popularized by search engines such as Infoseek and AltaVista in 1995, and its popularity quickly grew until it became one of the most commonly used meta elements. By late 1997, however, search engine providers realized that information stored in meta elements, especially the keyword attribute, was often unreliable and misleading, and at worst, used to draw users into spam sites. (Unscrupulous webmasters could easily place false keywords into their meta elements in order to draw people to their site.)
Search engines began dropping support for metadata provided by the meta element in 1998, and by the early 2000s, most search engines had veered completely away from reliance on meta elements. In July 2002 AltaVista, one of the last major search engines to still offer support, finally stopped considering them.
No consensus exists whether or not the keywords attribute has any impact on ranking at any of the major search engines today. It is speculated that it does, if the keywords used in the meta can also be found in the page copy itself. With respect to Google, thirty-seven leaders in search engine optimization concluded in April 2007 that the relevance of having your keywords in the meta-attribute keywords is little to none. However, the same article also suggests that Yahoo still makes use of the keywords meta tag in some of its rankings. Yahoo itself claims support for the keyword meta tag in conjunction with other factors for improving search rankings.
Unlike the keyword attribute, the description attribute is supported by most major search engines, like Yahoo and Live Search, while Google will fall back on this tag when information about the page itself is requested (e.g. using the related: query). The description attribute provides a concise explanation of a Web page's content. This allows the webpage authors to give a more meaningful description for listings than might be displayed if the search engine was unable to automatically create its own description based on the page content. The description is often, but not always, displayed on search engine results pages, so it can impact click-through rates. Industry commentators have suggested that major search engines also consider keywords located in the description attribute when ranking pages. W3C doesn't specify the size of this description meta tag, but almost all search engines recommend it to be shorter than 200 characters of plain text
The language attribute tells search engines what natural language the website is written in (e.g. English, Urdu or French), as opposed to the coding language (e.g. HTML). It is normally a 2 letter abbreviation for the language name. It is of most use when a website is written in multiple languages and can be included on each page to tell search engines in which language a particular page is written.
The robots attribute controls whether search engine spiders are allowed to index a page, or not, and whether they should follow links from a page, or not. The NOINDEX value prevents a page from being indexed, and NOFOLLOW prevents links from being crawled. Other values are available that can influence how a search engine indexes pages, and how those pages appear on the search results. The robots attribute is supported by several major search engines. There are several additional values for the robots meta attribute that are relevant to search engines, such as NOARCHIVE and NOSNIPPET, which are meant to tell search engines what not to do with a Web pages content. Meta tags are not the best option to prevent search engines from indexing content of your website. A more reliable and efficient method is the use of the Robots.txt file (Robots Exclusion Standard).
NOINDEX tag tells a search engine not to index a specific page. NOFOLLOW tag tells a search engine not to follow the links on a specific page. NOARCHIVE tag tells a search engine not to store a cached copy of your page. NOSNIPPET tag tells Google not to show a snippet (description) under your a search engine listing, it will also not show a cached link in the search results
The search engines Google, Yahoo! and MSN use in some cases the title and abstract of the Open Directory Project (ODP) listing of a Web site for the title and/or description (also called snippet or abstract) in the search engine results pages (SERPS). To give webmasters the option to specify that the ODP content should not be used for listings of their website, Microsoft introduced in May 2006 the new "NOODP" value for the "robots" element of the meta tags . Google followed in July 2006 and Yahoo! in October 2006.
The syntax is the same for all search engines who support the tag.
<META NAME="ROBOTS" CONTENT="NOODP">
Webmasters can decide if they want to disallow the use of their ODP listing on a per search engine basis
Google: <META NAME="GOOGLEBOT" CONTENT="NOODP">
Yahoo! <META NAME="Slurp" CONTENT="NOODP">
MSN and Live Search: <META NAME="msnbot" CONTENT="NOODP">
Yahoo! also used next to the ODP listing the content from their own Yahoo! directory but introduced in February 2007 a meta tag that provides webmasters with the option to opt-out of this
Yahoo! Directory titles and abstracts will not be used in search results for their pages if the NOYDIR tag is being added to a Web page.
<META NAME="ROBOTS" CONTENT="NOYDIR">
<META NAME="Slurp" CONTENT="NOYDIR">
Yahoo! also introduced in May 2007 the attribute value: class="robots-nocontent". This is not a meta tag, but an attribute and value, which can be used throughout Web page tags where needed. Content of the page where this attribute is being used will be ignored by the Yahoo! crawler and not included in the search engine's index.
Examples for the use of the robots-nocontent tag:
<div class="robots-nocontent">excluded content</div>
<span class="robots-nocontent">excluded content</span>
<p class="robots-nocontent">excluded content</p>