Why do many Claude prompts use XML-like tags such as <document> and <instructions>?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Tags are fences: they keep instructions, examples, and raw data from blending into one ambiguous blob.
Full explanation below image
Full Explanation
Claude responds well to structured prompts with explicit sections. XML-style tags are a common convention for separation — not an HTTP requirement, safety bypass, or sole readable language.