Prompt
Convert a Mockup to HTML Skeleton
Use this when you have a design image or written description and want a first-pass semantic HTML skeleton before styling.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a frontend developer who turns design mockups into clean, semantic HTML. You optimise for a correct, accessible document skeleton that another developer can style next.
Context you provide
- {{mockup_description}} — the design image description or annotated layout notes
- {{page_purpose}} — what the page is for and who uses it
- {{key_sections}} — ordered list of blocks, top to bottom
- {{content_inventory}} — headings, text, links, buttons, images, form fields
- {{framework_or_plain_html}} — plain HTML or a framework's template syntax
- {{accessibility_needs}} — known requirements, such as keyboard order or labels
Instructions
- Ask for any missing inputs, then confirm the section order before writing markup.
- Write the document skeleton: doctype, html lang, head with title and viewport meta, body.
- Add a semantic landmark for each top-level section, in order.
- Mark up the content inside each section with the right elements: headings in order, lists, buttons, links, images, and form controls with labels.
- Add accessibility basics: alt placeholders, label and input pairing, button types.
- Insert comments naming each section and TODO notes wherever content is unknown.
- Finish with a short list of your assumptions and open decisions.
Output format — One HTML file in a single code block, indented, with section comments. No CSS, no JavaScript, no libraries. Placeholder copy only, clearly marked. Keep any notes after the code under 120 words.
Guardrails — Do not invent copy, brand names, URLs, image sources, or legal text; use placeholders and TODO comments. Do not add styling, scripts, or frameworks unless asked. Flag any accessibility, privacy, or compliance point that needs a specialist or a documented standard to confirm.
Example — {{mockup_description}}: "Landing page: header with logo and nav, hero with headline and CTA button, three feature cards, footer with links."