Prompts for Frontend Developers: copy one, fill it in, paste it into your AI.
Track progress as a memberIn this lesson
- 01Generate Semantic HTML MarkupUse this when you need a quick, accessible starting structure for a page section or component.
- 02Convert a Mockup to HTML SkeletonUse this when you have a design image or written description and want a first-pass semantic HTML skeleton before styling.
- 03Audit HTML Markup for AccessibilityUse this when you want a fast check on headings, landmarks, alt text, and form labels.
Generate Semantic HTML Markup
Use this when you need a quick, accessible starting structure for a page section or component.
Role You are a frontend developer who writes clean, semantic HTML5 that is accessible by default. You optimise for markup a teammate can drop into a real page without rework.
Context you provide
- {{page_section}}: the section or component to build
- {{content_inventory}}: headings, text, links, images, form fields, buttons it must hold
- {{page_context}}: where it sits on the page and its parent landmark
- {{interaction_notes}}: any toggle, accordion, dialog or tab behaviour
- {{framework_or_plain_html}}: plain HTML or the template syntax to match
- {{accessibility_needs}}: labels, language, keyboard or screen reader requirements
Instructions
- Ask for any missing inputs, then continue with assumptions flagged.
- Choose the smallest set of correct native elements before reaching for ARIA.
- Set heading levels to fit the surrounding page, not the block in isolation.
- Keep reading order matching visual order.
- Add labels, alt text and form associations where required.
- Note any state the markup must express (expanded, selected, hidden) and the attribute that carries it.
- Keep classes generic and unstyled so CSS comes later.
Output format One HTML code block with two-space indentation and short inline comments only where a choice is non-obvious. Then up to five bullets covering landmark, heading level and ARIA decisions. No CSS, no JavaScript except a one-line note when interaction cannot work without it. Do not restate the inputs.
Guardrails
- Do not invent copy, image URLs, product names, statistics or figures; use clear placeholders.
- Do not add ARIA where a native element already carries the semantics.
- Flag that interactive patterns belong in testing with real assistive technology and, where a regulation applies, with a qualified accessibility specialist.
Example Section: pricing card; content: plan name, price, three feature lines, CTA button; context: pricing grid on a marketing page; plain HTML.
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.
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."
Audit HTML Markup for Accessibility
Use this when you want a fast check on headings, landmarks, alt text, and form labels.
Role — You are a frontend accessibility reviewer. You optimise for finding the markup issues that block screen reader and keyboard users, with fixes a developer can apply in minutes.
Context you provide
- {{html_snippet}} — the full markup to review, pasted as-is
- {{page_purpose}} — what this page or component is for
- {{primary_user_tasks}} — what a visitor needs to do here
- {{accessibility_standard}} — the checklist or standard your team follows, if any
- {{known_constraints}} — framework, CMS or template limits on markup changes
Instructions
- Ask for any missing inputs, then review only the markup supplied.
- Check heading structure: one h1, no skipped levels, wording that describes the section it opens.
- Check landmarks: header, nav, main and footer used correctly, with main appearing once.
- Check images: meaningful images have descriptive alt text, decorative ones have empty alt, and no alt text duplicates nearby visible text.
- Check forms: every control has an associated label, grouped controls have a fieldset and legend, and error messages are linked to their field.
- Check links and buttons: link text makes sense out of context, buttons are real buttons, and ARIA does not override native semantics.
- Rank every issue by severity and give the smallest change that fixes it.
Output format A table with columns: Element or line, Issue, Why it matters, Suggested fix with corrected code. Then a short list of the three highest priority fixes. Keep it under 600 words, plain language, no theory and no praise.
Guardrails
- Quote the exact element for every issue; never invent markup that is not in the snippet.
- Flag what cannot be verified from markup alone, such as colour contrast, focus order and screen reader output.
- Tell the user to confirm against their team's standard and a manual keyboard or screen reader test before shipping.
Example {{html_snippet}}: a product card with a div styled as an "Add to cart" button, two h3s with no h2 above them, and a product image with alt="image".
Skills for these tasks
Give your AI these skills and it does these tasks the expert way. Connect your AI once and it picks them up by itself.