# What check looks for

> The 28 problems contentbit check reports on a site's built pages, grouped by topic, with what fails a build and what only warns.

`contentbit check` reads the HTML your build wrote and reports
28 kinds of problem on the built pages. An error fails
the command, and so fails a CI job. A warning does not, unless you run
`check --strict`.

Most checks skip a page marked `noindex`, since a search engine does not
index it.

## Titles and descriptions

| What check reports | Severity | Code |
| --- | --- | --- |
| A page has no title. | error | `CB_PAGE_TITLE_MISSING` |
| Two pages have the same title. | warning | `CB_PAGE_TITLE_DUPLICATE` |
| A page has no meta description. | warning | `CB_PAGE_DESCRIPTION_MISSING` |
| Two pages have the same meta description. | warning | `CB_PAGE_DESCRIPTION_DUPLICATE` |
| A page serves another title than the one its Markdown declares. | warning | `CB_PAGE_TITLE_MISMATCH` |
| A page serves another description than the one its Markdown declares. | warning | `CB_PAGE_DESCRIPTION_MISMATCH` |

## Canonical URLs

| What check reports | Severity | Code |
| --- | --- | --- |
| A page has no canonical URL. | warning | `CB_PAGE_CANONICAL_MISSING` |
| A canonical URL points to a page that does not exist. | error | `CB_PAGE_CANONICAL_NOT_BUILT` |
| A canonical URL points to another page of the site. | warning | `CB_PAGE_CANONICAL_ELSEWHERE` |
| A canonical URL is on another domain than the site. | warning | `CB_PAGE_CANONICAL_ORIGIN` |

## Headings and content

| What check reports | Severity | Code |
| --- | --- | --- |
| A page has no h1. | warning | `CB_PAGE_H1_MISSING` |
| A page has more than one h1. | warning | `CB_PAGE_H1_MULTIPLE` |
| The HTML of a page is almost empty, so its content shows only after JavaScript runs. | warning | `CB_PAGE_BROWSER_RENDERED` |

## Images and structured data

| What check reports | Severity | Code |
| --- | --- | --- |
| An image has no `alt` attribute. | warning | `CB_PAGE_IMAGE_ALT_MISSING` |
| A JSON-LD block is not valid JSON. | error | `CB_PAGE_STRUCTURED_DATA_INVALID` |

## Links

| What check reports | Severity | Code |
| --- | --- | --- |
| A link points to a page that does not exist. | error | `CB_LINK_PAGE_MISSING` |
| A link points to an `#id` that its target page does not have. | error | `CB_LINK_ANCHOR_MISSING` |
| A link points to a file, such as a PDF, that is not in the build. | error | `CB_LINK_FILE_MISSING` |
| A link points to a page marked `noindex`. | info | `CB_LINK_NOINDEX_TARGET` |

## Sitemap

| What check reports | Severity | Code |
| --- | --- | --- |
| The sitemap lists a URL that is not a page of the build. | error | `CB_SITE_SITEMAP_URL_NOT_BUILT` |
| A page is not in the sitemap. | warning | `CB_SITE_SITEMAP_PAGE_MISSING` |
| The sitemap lists a page marked `noindex`. | warning | `CB_SITE_SITEMAP_NOINDEX` |

## Translated pages

| What check reports | Severity | Code |
| --- | --- | --- |
| An hreflang alternate points to a missing page, or to a page that does not point back. | warning | `CB_SITE_HREFLANG_NOT_RECIPROCAL` |
| A page lists hreflang alternates and no `x-default`. | warning | `CB_SITE_HREFLANG_X_DEFAULT_MISSING` |

## Markdown and its pages

These need [page routes](/docs/guides/adoption), which say which built page each Markdown file becomes.

| What check reports | Severity | Code |
| --- | --- | --- |
| A published Markdown file has no page in the build. | error | `CB_SITE_SOURCE_NOT_BUILT` |

## Page types

These run only when you define [SEO contracts](/docs/guides/seo-contracts) for your page types.

| What check reports | Severity | Code |
| --- | --- | --- |
| A page lacks a link that its page type requires. | warning | `CB_PAGE_LINK_REQUIRED` |
| A page links to fewer pages than its page type asks for. | warning | `CB_PAGE_OUTGOING_LINKS_MIN` |
| Fewer pages link to a page than its page type asks for. | warning | `CB_PAGE_INCOMING_LINKS_MIN` |

## Markdown

`check` also reads the Markdown files your config lists, for what the built
pages cannot show:

| What check reports | Severity | Code |
| --- | --- | --- |
| A heading skips a level, such as an h4 right under an h2. | warning | `CB_HEADING_LEVEL_SKIPPED` |
| A translated page has no key to pair it with its other languages. | warning | `CB_LOCALE_KEY_MISSING` |
| A page is missing in one of the site's languages. | warning | `CB_LOCALE_KEY_INCOMPLETE` |

## Where each finding points

Every finding names the place to fix it: a line of a Markdown file, an element
of the layout that repeats the problem on several pages, or a page.
[Check a site](/docs/guides/check#read-the-report) shows each one in a report.

## Next steps

- [Ignore a finding](/docs/guides/ignore) when one is there on purpose, or change its severity.
- [Finding codes](/docs/reference/finding-codes) gives the exact condition of every code. It also
  lists the codes this page leaves out: SEO contracts, typed blocks, the check settings, the
  installed agent skills, and `validate`.
