Module 1 of 6 · Intermediate · 10 min read
Websites and web development
From a one-line idea to a fast, accessible, deployed website, with AI writing the code and you steering.
- 1Write a short spec first: audience, pages, content, style and stack.
- 2Build one section at a time and review it in the browser before moving on.
- 3Ask for accessibility, performance and responsive checks explicitly.
- 4Never paste secrets into prompts or ship code you haven't run.
01Where AI helps
AI can now produce a working landing page in minutes, and a multi-page site with a real framework in an afternoon. It is strongest at boilerplate, layout, styling, copy drafts and explaining errors. It is weakest at knowing what your business actually needs, at taste, and at noticing problems it can't see, such as how the page behaves on a real phone.
- Drafting page structure, copy and components.
- Turning a sketch or screenshot into HTML and CSS.
- Explaining and fixing build errors.
- Accessibility and performance reviews.
- Writing deployment configuration and documentation.
02The workflow
Keep the spec in the project and point the AI at it whenever you start a new session.
- Write a one-page spec: goal, audience, pages, content, style references, stack.
- Generate a skeleton: layout, navigation and one complete page.
- Review in a real browser at phone and desktop widths, then iterate.
- Add pages and components one at a time, keeping the style consistent.
- Run accessibility, performance and link checks, and fix what they find.
- Deploy to a preview URL, test again, then go live.
03Tools to reach for
For anything you will keep, prefer tools that give you the actual code in a repository you own.
- Chat assistants for planning, copy and one-off snippets.
- AI app builders that generate and host a site from a prompt, for quick prototypes.
- AI code editors and coding agents for real projects you will maintain.
- Browser developer tools and automated accessibility and performance audits for checking the result.
- Static hosting platforms with preview deploys for shipping.
04Prompt: the spec
Start by having the AI interview you, then write the spec you will reuse.
05Prompt: build the first page
Ask for one complete page, not the whole site, so you can judge quality early.
06Prompt: review and harden
Before launch, run a structured review. Paste the code or point a coding agent at the repository.
07Pitfalls
AI makes code cheap. Your judgement about what to build, and checking that it works, is now the valuable part.
- Building everything at once: you end up with a large codebase you don't understand. Go section by section.
- Trusting the preview pane: always check on a real phone and in more than one browser.
- Invented packages: check that every library the AI imports exists and is maintained.
- Generic design: give style references, colours and fonts, or every site looks the same.
- Secrets in code: API keys belong in environment variables, never in the frontend or in prompts.
Finished reading?
Mark it complete to track your progress, then test yourself with the Build with AI: Software & Media quiz.