Advanced Prompt Engineering · Lesson 2
Structuring prompts: XML, markdown, roles
XML tags and Markdown as delimiters for Claude, GPT and Gemini, system/developer/user/assistant roles, replacing prefill with structured outputs, and defending against delimiter injection.
Why structure
An LLM follows a prompt better when block boundaries (instruction, data, examples, format) are explicitly marked. Without markup the model mixes up data and instructions, and prompt injection feeds on exactly that confusion.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.


