Search.gov, like other search engines, relies on structured data to help inform how we index your content and how it is presented in search results. You should also read up on the metadata used by Google (External link) and Bing (External link).

Including the following tags and metadata in each of your pages will improve the quality of your content’s indexing, as well as results ranking.

This page will be updated over time as we add more tag-based indexing functions and ranking factors to our service.

<title>
Detail: Unique title of the page. If you want to include the agency or section name, place that after the actual page title.
Used in: Query matching, term frequency scoring

<meta name=”description” content=”foo” />
Used in: Your well crafted summary of the page content. This will often be used by search engines in place of a page snippet. Best to limit to 160 characters, so it will not be truncated. Read more here (External link).
Used in: Query matching, term frequency scoring

<meta name=”keywords” content=”foo bar baz ” />
Detail: While not often used by commercial search engines due to keyword stuffing (External link), Search.gov indexes your keywords, if you have added them.
Used in: Query matching, term frequency scoring

<meta property="og:title” content=”Title goes here” />
Detail: Usually duplicative of <title>, we use the og:title property as the result title if it appears to be more substantive than the <title> tag.
Used in: Query matching, term frequency scoring

<meta property="og:description” content=”Description goes here” />
Detail: Often duplicative of the meta description, we will index this as well, in case it has different content.
Used in: Query matching, term frequency scoring

<meta property="article:published_time" content="YYYY-MM-DD" />
Detail: Exact time is optional; read more here (External link).
Used in: Page freshness scoring.

<meta property="article:modified_time" content="YYYY-MM-DD" />
Detail: Exact time is optional; read more here (External link).
Used in: Page freshness scoring.

<meta name="robots" content="..., ..." />
Detail: Use the meta robots tag to block the search engine from indexing a particular page.
Used in: Used during indexing, does not affect relevance ranking.

<main>
Detail: Allows the search engine to target the actual content of the page and avoid headers, sidebars and other page content not useful to search. Read more about the <main> element here
Used in: Query matching, term frequency scoring