The robots meta tag is a meta element with the name robots and a content value listing directives. Common ones are noindex, which asks engines not to show the page in results, nofollow, which asks them not to follow its links, and their opposites, index and follow, which are the defaults. Specific engines can be addressed by using their own name in place of robots.
It works at the level of a single page, and the crawler must be able to fetch the page to read it. That is why blocking a URL in robots.txt stops a noindex tag from ever being seen. For files that are not HTML, such as PDFs, the same directives are sent as an X-Robots-Tag HTTP header instead.
The common mistake is a stray tag. CMS settings, SEO plugins and themes can all add one, and a site-wide noindex left from development can quietly hide an entire site. Another is assuming the directive is obeyed by every bot; reputable search engines honour it, but it is not protection. Example: viewing the source of a page that fails to appear in Google reveals noindex in the head, placed there by a plugin setting.
Related: noindex, X-Robots-Tag, robots.txt, SEO plugin, indexing