Metadata is information about something else that helps people and software find it, understand it or manage it. The title and author of a book are metadata. So are the size and date of a file, the tags on a blog post and the price label on a product. The classic short definition is "data about data". NISO primer
On a website, metadata tells browsers how to display a page, tells search engines and social networks what the page is, and helps you keep track of your own content.
The main types of metadata
Librarians and archivists sort metadata by the job it does. The same groups work well for websites:
| Type | What it's for | Website example |
|---|---|---|
| Descriptive | Finding and understanding the thing | Page title, meta description, a product's name and price in structured data |
| Technical (administrative) | Opening and displaying a file | Character encoding, file type |
| Rights (administrative) | Who owns it and how it may be used | Copyright notice, a Creative Commons license on a photo |
| Preservation (administrative) | Managing files over the long term | A checksum that proves a file hasn't changed |
| Structural | How the parts fit together | Pages in a sequence, a table of contents |
| Markup | Labels inside the content itself | HTML tags that mark headings, paragraphs and links |
For SEO, descriptive metadata does most of the work, because it's what search engines read to decide what a page is about and how to present it.
Where metadata lives on a web page
In the <head>. The <title> element and the meta tags sit here, out of sight of visitors:
<head>
<meta charset="utf-8">
<title>Trail running shoes for wet ground | Example Store</title>
<meta name="description" content="Grippy, waterproof trail shoes for mud and rain, with free returns.">
<meta name="robots" content="noindex">
</head>
In structured data. Structured data labels facts on the page, such as a product's price or an event's date, using the schema.org vocabulary. Google reads it in three formats (JSON-LD, Microdata and RDFa) and recommends JSON-LD as the easiest to maintain.
In social preview tags. Open Graph tags are meta tags that tell social networks which title, image and URL to show when someone shares the page. The protocol requires four: og:title, og:type, og:image and og:url.
Inside files. Images can carry embedded IPTC photo metadata such as the creator, a credit line and a copyright notice. Google reads this, or the same facts in structured data, and can then show a Licensable badge on the image in Google Images. Embedded metadata stays with the image wherever it's copied. See image SEO.
In HTTP headers. Files that aren't HTML, such as PDFs, have no <head>. For them, the server can send rules like noindex in an X-Robots-Tag header.
What search engines do with it
Search engines don't treat every piece of metadata the same way. For Google:
- The
<title>element is one of the sources Google uses for the clickable headline of a result. See meta title. - The meta description is sometimes used for the snippet under it, when it describes the page better than the page's own text. See meta description.
- The robots meta tag controls whether a page is indexed and how its snippet may look.
- Structured data can make a page eligible for rich results, but correct markup doesn't guarantee them.
- The keywords meta tag is ignored, and so is any meta tag Google doesn't support.
One rule runs through all of it: metadata must describe what's really on the page. Google's guidelines say not to mark up content that readers can't see, and a title or description that promises something else only costs you the visitor's trust once they click.
Metadata standards outside SEO
Libraries, archives, publishers and companies use metadata standards so that records stay consistent and systems can exchange them. The best known general one is Dublin Core, a set of fifteen elements such as title, creator, subject and date. It's named after a 1995 workshop in Dublin, Ohio, and is published as ISO standard 15836.
Inside a website, the same idea shows up as a taxonomy: an agreed list of categories and tags, so that two editors don't file the same topic under different names.
Check your page's metadata
To see what you've published, view the page source in your browser and look at the <head>. To see what Google sees, use the URL Inspection tool in Google Search Console. For structured data, Google's Rich Results Test shows which rich results a page qualifies for and lists any errors.