HTML attribute - HTML | MDN
Skip to search

HTML attribute
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
* Some parts of this feature may have varying levels of support.
See full compatibility
Report feedback
The
name
attribute of the

element provides metadata in name-value pairs.
When a

element has a
name
attribute, a
content
attribute defines the corresponding value.
The metadata is
document-level metadata
that applies to the whole page.
For example, the following

tag provides a
description
as metadata for a document:
html
name="description"
content="The HTML reference describes all elements and attributes of HTML, including global attributes that apply to all elements." />
Value
Meta names defined in the HTML specification
The HTML specification defines the following set of standard metadata names:
application-name
Browsers may use this to identify the application running in the web page.
It is different from the
<br>element, which may contain an application (or website) name, but a<br><title><br>may add contextual information like a document name or a status.<br>Individual pages shouldn't define their own, unique<br>application-name<br>To provide translations, use multiple<br><meta><br>tags with the<br>lang<br>attribute for each language:<br>html<br><meta name="application-name" content="Weather Wizard" lang="en" /><br><meta name="application-name" content="Mago del Clima" lang="es" /><br>author<br>The document author's name.<br>color-scheme<br>Specifies one or more color schemes with which the document is compatible.<br>The browser will use this information in tandem with the user's browser or device settings to determine what colors to use for everything from background and foregrounds to form controls and scrollbars.<br>The primary use for<br><meta name="color-scheme"><br>is to indicate compatibility and order of preference for light and dark color modes.<br>description<br>A short and accurate summary of the content of the page usually referred to as a "meta description".<br>Search engines like Google use this metadata to adjust<br>the appearance of a webpage in search<br>results.<br>generator<br>The identifier of the software that generated the page.<br>keywords<br>Words relevant to the page's content separated by commas.<br>referrer<br>Controls the HTTP<br>Referer<br>header of requests sent from the document.<br>theme-color<br>Indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface.<br>The<br>content<br>attribute contains a valid CSS<br><color><br>The<br>media<br>attribute with a valid media query list can be included to set the media that the theme color metadata applies to.<br>Meta names defined in other specifications<br>The CSS Device Adaptation specification defines the following metadata name:<br>viewport<br>Gives hints about the size of the initial size of the<br>viewport<br>Meta names defined in the WHATWG MetaExtensions wiki<br>The<br>WHATWG Wiki MetaExtensions page<br>contains a large set of non-standard metadata names.<br>Some of the names included are used quite commonly in practice, notably the following:<br>creator<br>The name of the creator of the document, such as an organization or institution.<br>If there are more than one, several<br><meta><br>elements should be used.<br>googlebot<br>A synonym of<br>robots<br>, is only followed by Googlebot (the indexing crawler for Google).<br>publisher<br>The document publisher's name.<br>robots<br>A comma-separated list of values defining the crawl behavior that cooperative crawlers (or "robots") should use with the page.<br>Specifications<br>Specification<br>HTML<br># standard-metadata-names<br>Referrer Policy<br># referrer-policy-delivery-meta<br>Browser compatibility<br>See also<br>Metadata: the<br><meta><br>element<br>Help improve MDN<br>Learn how to contribute<br>This page was last modified on<br>Apr 20, 2026<br>by<br>MDN contributors<br>View this page on GitHub<br>Report a problem with this content</p></div> </div> <div class="detail-actions"> <a href="/search?q=developer.mozilla.org" class="btn">Same domain →</a> <a href="/search?q=%3Cmeta%20name%3E%20HTML%20attribute%20-%20H" class="btn btn-secondary">Similar titles →</a> </div> </article> </main> <footer class="site-footer"> <div class="container"> <p>C U Cyber History — Public Interest Web Archive</p> <p class="footer-small">Preserving fading web memories. Discover history that once existed.</p> </div> </footer> <script id="chat-i18n-en" type="application/json">{"button_label":"Need Help?","placeholder":"Ask us anything...","title":"CUCH Assistant","subtitle":"How can we help you?","send":"Send","close":"Close","folder":"/var/www/cu","greeting":"Hi! Welcome to CUCH.org. How can I help you today? Feel free to ask about our archive, search, or anything else!","error":"Sorry, our service is temporarily unavailable. Please try again later.","banner_text":"Need help? Ask our AI assistant!"}</script> <script src="/static/js/chat-widget.js"></script> </body> </html>