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: unavailable-after directives using a short example that you can inspect and change.
The Idea in Plain English
This time-based directive is search-engine-specific. Some engines may stop showing the page after the date, but the page remains available on your server.
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="unavailable_after: 25 Oct 2026 15:00:00 GMT">
</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
- Treating unavailable_after as an access-control mechanism.
- 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
- This time-based directive is search-engine-specific. Some engines may stop showing the page after the date, but the page remains available on your server.
- 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.