Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

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

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

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

  1. Ask for any missing inputs, then confirm the section order before writing markup.
  2. Write the document skeleton: doctype, html lang, head with title and viewport meta, body.
  3. Add a semantic landmark for each top-level section, in order.
  4. Mark up the content inside each section with the right elements: headings in order, lists, buttons, links, images, and form controls with labels.
  5. Add accessibility basics: alt placeholders, label and input pairing, button types.
  6. Insert comments naming each section and TODO notes wherever content is unknown.
  7. 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."