Designers and developers constantly start from a reference: “make the pricing section feel like that one”, “use a similar hero layout”. The efficient way to do this with an AI coding assistant is to describe the structure of the reference, then build your own page with your own content. A website-to-prompt workflow automates the first half. This guide explains how it works, how to write the build prompt and where the ethical and legal lines sit.
What can be learned from a page’s structure
A public web page exposes more design information than most people realise. Its heading hierarchy shows the order of the story. The number and type of elements reveal the layout: one large heading, three feature headings and a repeated button is a classic landing page. The styles declare the colour palette and the fonts. Button labels show the calls to action. A tool that reads these signals can produce an accurate structural summary without ever looking at a screenshot.
That also tells you what is missing. Structure does not capture photography, illustration, animation, spacing rhythm or the quality of the copy. Those are what make a site feel unique, and they are the parts you should be making yourself.
Anatomy of a good build prompt
- Stack: HTML and CSS, Tailwind, React, or a CMS theme. Naming it prevents a mismatched answer.
- Page type and goal: landing page for a product trial, portfolio, documentation home.
- Section list in order: header, hero, social proof, features, pricing, FAQ, footer.
- Layout rules: grid columns, breakpoints, alignment, spacing scale.
- Design tokens: a palette and type scale you choose, not the original’s.
- Behaviour and accessibility: keyboard focus, contrast, responsive navigation, reduced motion.
- Your own content: real headings and copy, or clearly marked placeholders.
A real-world example: a landing page for a scheduling app
A solo developer is building a small appointment-scheduling tool for physiotherapists. He admires the clean structure of a well-known SaaS landing page: a left-aligned hero with a single button, a row of customer logos, three alternating feature blocks, a three-tier pricing table and a short FAQ. He runs the page through a structure summary and gets the section order and element counts.
Instead of asking the assistant to “clone this site”, he writes a prompt built on the structure and fills in his own identity:
Build a responsive landing page in HTML and Tailwind CSS for a scheduling app for physiotherapists. Sections in order: sticky header with logo and a Start free trial button; left-aligned hero with headline, one-sentence subhead and a single button; a row for three trust statements; three alternating feature blocks (online booking, automatic reminders, simple invoices); a three-tier pricing table; five-question FAQ; footer. Use a deep green and warm cream palette, a rounded sans-serif for headings, 8px spacing scale, mobile-first, accessible contrast and visible focus states. Use placeholder copy marked [EDIT].
The structure came from the reference; the palette, the product, the words and the imagery are his own. That difference is what makes the result a legitimate page and not a copy. He then replaces every placeholder with real content, adds his own screenshots and tests on a phone before launch.
What not to copy
- Text and images. Copy, photography, icons and illustrations are protected by copyright.
- Logos, names and trade dress. Do not imitate another brand so closely that visitors could be confused.
- Distinctive code and assets that are licensed or proprietary.
- Private content. Only analyse public pages, and never try to read anything behind a login.
Layout patterns themselves, such as a hero followed by features, are common design vocabulary and not owned by anyone. If you are unsure whether your result is too close to a reference, change more of it, or ask a qualified professional.
Test what you build
Run the generated page through a browser’s accessibility checks, test keyboard navigation, resize from phone width to a large desktop, and measure performance before shipping. AI-built pages often look right while hiding problems with contrast, heading order and image sizes.