A small piece of HTML can change what a visitor sees or how the browser understands a page. In this lesson, you will explore meta robots: noarchive and nosnippet directives using a short example that you can inspect and change.
The Idea in Plain English
Legacy noarchive instructions are not reliably supported by every search engine today. Check the engine’s current rules; removing a cached-copy display is not the same as deindexing.
Search engines are independent services. Valid markup helps them understand a page, but it never guarantees ranking, indexing or a particular search appearance.
A Working Example
Read the sample once before copying it. Notice the element names and attribute values, then compare them with the explanation below.
<head>
<title>Private Draft Preview</title>
<meta name="robots" content="noarchive">
</head>
What Each Part Does
- The meta element supplies machine-readable settings; its name or charset decides which setting.
- The title gives the document a name in tabs and other browser surfaces.
- The head holds page metadata, not the visible lesson content.
- name identifies a field in submitted form data or a named metadata entry.
- content supplies the value of a meta declaration.
The browser does not hide or lock the page. The directive is meant for search crawlers that choose to obey it.
Try It Yourself
Open the page source to verify the robots tag. Remember that server access controls are a separate problem.
Common Beginner Mistakes
- Assuming noarchive hides or removes a live page.
- Changing several parts of the example at once, making it difficult to see which part caused a different result.
- Choosing a tag only because its default appearance looks right, without checking whether it describes the content correctly.
Key Takeaways
- Legacy noarchive instructions are not reliably supported by every search engine today. Check the engine’s current rules; removing a cached-copy display is not the same as deindexing.
- The browser does not hide or lock the page. The directive is meant for search crawlers that choose to obey it.
- Test the markup in a browser, and check accessibility and real-world behavior where relevant.