web · Level 2
Build and launch a website with AI
From idea to a live site: plan it, have AI draft the code, check it properly, publish it free and keep it healthy.

Your next step
Start this course online
Register your start, then work through the lessons and exercises at your own pace. You can download the PDF separately. Where a scored exam is available, you will find it after the lessons.
Register or resume your course
Start with the essentials
The short answer
You can build a simple website with AI's help, even if you have never coded. Plan the goal, audience and pages first, then ask an AI assistant for a single HTML file with CSS, preview it in your browser and read the code so you understand it. Publish it on a free static host, add a domain if you want one, and check accessibility and privacy.
What you will learn
- You will be able to plan a small website around a clear goal, audience and set of pages.
- You will be able to explain what HTML, CSS and JavaScript each do, and read a short page of code.
- You will be able to brief an AI to draft a single-file site, and improve it step by step.
- You will be able to review AI-written code for secrets, unwanted scripts and invented facts.
- You will have published a site on free static hosting and know how to keep it findable, accessible, private and current.
Who it is for
Anyone who wants their own small website, whether a personal page, a portfolio, a club or a small business, and has never built one. No coding experience is needed.
Before you start
- Some experience of using an AI chatbot. A computer with a web browser and a plain text editor.
Learn in your browser · Chapter 01 of 06
Plan before you prompt
The best prompt in the world cannot rescue a site with no plan. Ten minutes of thinking first saves an hour of fiddling later.
In this workbook you will build a static website: a set of ready-made files (pages, images and styles) that a server hands to visitors exactly as they are. Static sites are quick, simple to secure and cheap or free to host. They suit a personal page, a portfolio, a club or a small business brochure. On their own they do not handle logins, payments or databases.
Answer five questions on paper before you open an AI.
- Goal: what one thing should a visitor do? Call you, read something, book, or buy elsewhere?
- Audience: who are they, and what must they learn in the first ten seconds?
- Pages: start with one to four.
- Content: the real words, photos and facts, written or gathered by you.
- Look and tone: two or three adjectives, such as calm, warm and professional.
Scroll sideways to see every column.
| Page | Purpose | Usually includes |
|---|---|---|
| Home | Say what you do and who for | A headline, a one-line promise, the main action |
| About | Build trust | Who you are, your story, a photo |
| Contact | Make it easy to reach you | One clear way to get in touch, opening hours |
Try it yourself · Activity 01
20 minPlan on one page
Produce a one-page plan you can hand to an AI as a brief.
- Write your answers to the five questions above.
- Sketch each page as boxes on paper.
- Write the real headline and three short paragraphs for your Home page.
- List every fact, photo and contact detail you still need to gather.
If a stranger read only your headline, would they know what you offer and what to do next?
Learn in your browser · Chapter 02 of 06
A ten-minute primer: HTML, CSS and JavaScript
You do not need to become a coder. You do need to read what the AI gives you, or you cannot judge it.
A web page is a text file that your browser turns into a page. Three languages share the work.
- HTML gives the page its structure and meaning: headings, paragraphs, links, images and lists. Think of the rooms and walls.
- CSS controls the look: colours, fonts, spacing and layout. Think of the decoration.
- JavaScript adds behaviour: menus that open, forms that check themselves. Think of the wiring. A simple brochure site needs little or none.
Here is a small, complete page using only HTML and CSS. The image line points at a file called loaf.jpg that you would add to the same folder. Until you do, the browser shows the alt text instead.
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Example Bakery: fresh bread every morning</title>
<meta name="description" content="Small-batch sourdough, baked every morning.">
<style>
body { font-family: system-ui, sans-serif; line-height: 1.6; margin: 0; color: #222; background: #fffdf8; }
header, main, footer { max-width: 40rem; margin: 0 auto; padding: 1rem; }
a { color: #7a4b00; }
a:focus { outline: 3px solid #7a4b00; outline-offset: 2px; }
img { max-width: 100%; height: auto; }
</style>
</head>
<body>
<header>
<h1>Example Bakery</h1>
<nav><a href="#bread">Our bread</a> <a href="#hours">Opening hours</a></nav>
</header>
<main>
<h2 id="bread">Bread made slowly</h2>
<p>We bake sourdough every morning from flour, water and salt.</p>
<img src="loaf.jpg" alt="A golden sourdough loaf on a wooden board" width="600" height="400">
</main>
<footer id="hours"><p>Open Tuesday to Saturday.</p></footer>
</body>
</html>Scroll sideways to see every column.
| Part of the page | What it does |
|---|---|
| The lang attribute | Declares British English, which helps screen readers and translation |
| The viewport line | Makes the page fit a phone screen |
| Header, main and footer | Meaningful sections that assistive software understands |
| The img element and its alt text | A picture, with a written description for people who cannot see it |
CSS works in rules: name something, then say how it should look. The rule a { color: #7a4b00; } makes every link dark brown. JavaScript would sit inside a script element and runs on the visitor's own device, one reason to treat it with care (see chapter 4).
Try it yourself · Activity 02
15 minBreak it and fix it
Get comfortable editing a page by hand before an AI edits it for you.
- Copy the example into a plain text editor (not a word processor) and save it as index.html in a new folder.
- Open it in your browser. What appears where the missing picture should be?
- Change the heading and the background colour, save, and refresh.
- Delete one closing tag on purpose, refresh, then put it back.
What did the browser do when something was missing or wrong?
Learn in your browser · Chapter 03 of 06
Have AI build it
Good results need a specific brief. Treat the AI like a fast freelancer who knows nothing about your business.
Give it five things: the goal, audience and pages from your plan; your real content; hard constraints; the technical format; and what to leave out. Here is a worked prompt you can adapt.
Act as a careful web developer. Build a small website for a bakery called Example Bakery.
Goal: visitors should know what we bake and how to order.
Audience: local people who want fresh bread, mostly on phones.
Pages: Home, About and Contact, as sections of ONE file called index.html.
Use only my content below. Do not invent testimonials, awards, prices, addresses or statistics. Where something is missing, write [ADD: what is needed].
Content:
- Headline: Bread made slowly
- Intro: We bake sourdough every morning from flour, water and salt.
- About: [ADD: two sentences from me]
- Contact: by email at [ADD: email address]
Requirements:
- One file, HTML and CSS only. No JavaScript, no external fonts, no third-party scripts, no trackers.
- Mobile first, readable at 320 pixels wide.
- Accessible: semantic elements, one h1, sensible heading order, text contrast of at least 4.5 to 1, visible keyboard focus, alt text on images.
- British English, calm and warm.
- Short HTML comments explaining each section.
After the code, list every assumption you made and anything I should check.Then work in small steps. Ask for one change at a time ('make the heading larger') and ask questions ('explain the style section in plain English'). If something breaks, describe the problem and ask for a fix, but never paste anything private.
A useful trick: paste the finished file into a fresh chat and ask, 'Review this against my requirements and point out anything unsafe, inaccessible or unnecessary.' A second opinion catches things, though it can also be wrong.
Try it yourself · Activity 03
30 minBuild your first draft
Turn your plan from chapter 1 into a working page.
- Adapt the worked prompt using your own plan and real content.
- Save the AI's code as index.html in a new folder.
- Open it in your browser and check it against your plan.
- Ask for three small changes, one at a time, saving after each, and ask the AI to explain one part you did not understand.
Which instruction in your prompt made the biggest difference? What did the AI assume that you had not asked for?
Learn in your browser · Chapter 04 of 06
Preview, review and stay safe
Before anything goes public, look at it, use it and read it. Ten careful minutes here prevent hard-to-undo mistakes.
Preview locally by opening index.html in your browser. Edit, save, refresh. Check a narrow window like a phone, a wide window, and keyboard only: press Tab repeatedly. Can you reach every link, and see where you are?
Then read the code, especially the parts you did not ask for. Your published files are public: anyone can view a page's source, so nothing secret can live in them.
Watch for these red flags in AI-written code.
- Script elements that load code from another website. It runs inside your page, can track visitors and can change without you knowing.
- Anything that sends data elsewhere, such as forms with unfamiliar addresses.
- Scrambled code that the AI cannot explain in plain words.
- Features you never asked for: analytics, chat widgets, pop-ups, cookie setters.
- Links to sites you do not recognise, or hidden text.
- Invented facts: prices, phone numbers, awards, addresses.
Third-party scripts deserve special care. Analytics, chat boxes, maps, video embeds and web fonts are convenient, but each brings another company into your page and your visitors' privacy. Add one only if you need it, take it from the provider's own documentation, and read what it collects.
Try it yourself · Activity 04
20 minReview like a sceptic
Audit your own draft as if someone else had written it.
- Open index.html in a text editor and use its find tool to search for: script, http, form, key, password and iframe.
- For every hit, write down what it is and decide whether to keep or remove it.
- Ask the AI to explain anything you cannot explain yourself.
- Do the keyboard test: reach every link using only the Tab key.
Did anything turn up that you did not expect? How will you brief the AI differently next time?
Learn in your browser · Chapter 05 of 06
Going live: hosting, domains and HTTPS
Publishing means putting your files on an always-on, connected computer. That is what a host does, and for static sites there are free options.
Static hosting stores your files and serves them to visitors. Several well-known providers offer a free plan for static sites. Three are described here as examples, not recommendations. Limits and terms change, so read the current ones on the provider's own page.
Scroll sideways to see every column.
| Host | How it works | Worth knowing |
|---|---|---|
| GitHub Pages | Publishes HTML, CSS and JavaScript files from a repository on GitHub | Available for public repositories on GitHub's free plan, so your files are public. Its documentation says it is not intended for running an online business or shop |
| Netlify | Publishes sites from a Git repository or through its other deploy options | Its pricing page lists a free plan with custom domains and SSL, the technology behind HTTPS |
| Cloudflare | Hosts static files, with Git and direct upload options in its Pages product | Its documentation now advises starting new projects with its Workers product, so follow its latest guide |
- Put your site in one folder: index.html plus any images.
- Choose a host and create an account. Use a strong, unique password and two-step verification.
- Follow the host's own current guide for a static site. Screens change, so trust it over any old tutorial, including this one.
- Open the live address on your phone, fix anything odd and publish again.
A domain name is the address people type, such as yourname.co.uk. Hosts give you a free address by default. A domain of your own is optional. You rent it, usually yearly, from a company called a registrar. Pick something short and easy to say aloud, avoid names close to another brand, and set a renewal reminder, because an expired domain can be lost. Registration details may be public unless the registrar hides them.
HTTPS is what some browsers show as a padlock beside the address. It encrypts the connection between your visitor and your site so it cannot be read or changed on the way. Check that your host offers it, then switch it on and leave it on. It shows the connection is private. It does not show that a site is honest.
Try it yourself · Activity 05
45 minGo live
Publish the site you built and prove it works for someone else.
- Choose a host. Before you sign up, read its free-plan terms and write down one restriction.
- Publish your folder following the host's current guide.
- Open the live address on your phone.
- Send the address to one friend and ask what confused them, then note the date you published.
What was harder than you expected? What would you do differently on the second site?
Learn in your browser · Chapter 06 of 06
Search, access, privacy and upkeep
A live site is the start. Four habits keep it findable, usable by everyone, respectful of visitors and still healthy next year.
Search (SEO) basics. Search engines read your text and follow links. Give each page a unique title and a short description, and break up long pages with clear headings. Write link text that makes sense alone ('read our menu', not 'click here'). Keep images small. Original, useful writing matters most. No one can promise you a ranking, so be wary of anyone who does.
Accessibility. This means people with different abilities and devices can use your site. Use real headings and lists, give meaningful images alt text, keep contrast strong (the Web Content Accessibility Guidelines ask for at least 4.5 to 1 for normal text at their AA level), never rely on colour alone, make everything work by keyboard with a visible focus, and label any form field.
Privacy. The most private site collects nothing. A plain page with no analytics, no embeds and no third-party fonts sets no cookies (small files a site stores in a visitor's browser) and should have nothing to ask consent for. Your host may still log some visitor data: GitHub's documentation, for example, says it logs visitors' IP addresses for security. Read your host's privacy terms.
If you add analytics, embeds or anything that stores or reads information on visitors' devices, UK rules on cookies and similar technologies (PECR) and on personal data (UK GDPR) come into play. The Information Commissioner's Office publishes guidance, finalised in 2026, and some uses need consent. This workbook is not legal advice.
Forms. A static page cannot receive form submissions by itself. You need a form service or other back end, which means you now collect personal data. Collect the minimum, say in a short privacy notice what you do with it and for how long, read your provider's terms, and never ask for passwords or payment details. Showing an email address is simpler.
Upkeep. A little regular care goes a long way.
- Keep a copy of your files somewhere other than the host.
- Every quarter, click every link and check dates, opening hours and prices.
- Renew your domain and protect your accounts with two-step verification.
- When you ask AI to change the code, review the new version as carefully as the first.
Try it yourself · Activity 06
25 minAudit your live site
Check what you have published against everything in this chapter.
- Check that each page has a unique title and description, and headings in order.
- Tab through every page and zoom the text to 200 per cent.
- Search your files for anything that loads from, or sends data to, another site.
- Ask an AI to review the page against this chapter, check its findings yourself, and make the three most important fixes.
What does your site collect about visitors, if anything? Could you explain that to a visitor in two sentences?
Well done. You have taken a site from idea to the open web. Next, the workbooks on AI agents and on building a chatbot show what changes when AI can act for you, and how to add a conversational helper to your own project.
Keep learning
The complete workbook
This workbook takes you from a blank page to a live website. You will plan a small site, learn what HTML, CSS and JavaScript do in plain English, brief an AI to draft the code, review it safely, publish it on free static hosting and look after it afterwards.
- 01Plan before you promptRead here · 1 exercise
The best prompt in the world cannot rescue a site with no plan. Ten minutes of thinking first saves an hour of fiddling later.
- 02A ten-minute primer: HTML, CSS and JavaScriptRead here · 1 exercise
You do not need to become a coder. You do need to read what the AI gives you, or you cannot judge it.
- 03Have AI build itRead here · 1 exercise
Good results need a specific brief. Treat the AI like a fast freelancer who knows nothing about your business.
- 04Preview, review and stay safeRead here · 1 exercise
Before anything goes public, look at it, use it and read it. Ten careful minutes here prevent hard-to-undo mistakes.
- 05Going live: hosting, domains and HTTPSRead here · 1 exercise
Publishing means putting your files on an always-on, connected computer. That is what a host does, and for static sites there are free options.
- 06Search, access, privacy and upkeepRead here · 1 exercise
A live site is the start. Four habits keep it findable, usable by everyone, respectful of visitors and still healthy next year.
Also inside: a 10-point checklist, a glossary of 12 terms and 10 questions and answers to test yourself. 6 hands-on exercises, each with a worked answer at the back where the workbook gives one.
The PDF is free. We ask for your name and email before downloading. Read the privacy notice at the download form. Free to download and use for personal learning, study groups and inside your own team. Please do not resell the workbooks or republish them as your own. Link people to trust-agent.ai instead.
Get your free PDF workbook
Enter your name and email, then download the complete workbook. This form also works without JavaScript.
Test yourself
Questions and answers
Do I need to know how to code to build a website with AI?
No, but you should be able to read what the AI gives you. Learn the basics of HTML, CSS and JavaScript, keep the code small, ask the AI to explain each part, and review it before publishing. You remain responsible for what goes live.
What is a static website?
It is a site made of ready-made files that a server delivers exactly as they are. It is fast and simple to secure. On its own it cannot handle logins, payments or a database, so it suits brochures, portfolios and information pages.
Can I really host a website for free?
Yes, for simple static sites. Several providers offer free plans, including GitHub Pages, Netlify and Cloudflare. Limits and rules change, and some free plans forbid running a business or shop, so read the current terms first.
Do I need to buy a domain name?
No. Free hosts give you a working address. A domain of your own looks more professional and is easier to remember, but you rent it, usually yearly, and you must renew it. Consider one once the site is worth keeping.
Is AI-written code safe to publish?
Not automatically. It can include unwanted scripts, invented facts or careless choices. Read it, remove what you did not ask for, search it for external addresses, and never include secrets. Treat it as a draft that you review.
What should never go in my website files?
Passwords, access keys, tokens, private email addresses and other people's personal details. Anyone can view the source of a public page, so anything in it is effectively public. Keep secrets out of your files and out of AI chats.
Do I need a cookie banner?
A page with no cookies and no third-party scripts has nothing to ask consent for. If you add analytics, embeds or anything that stores or reads information on a visitor's device, UK rules apply and some uses need consent. The ICO publishes guidance. This is not legal advice.
How do I add a contact form to a static site?
A static page cannot receive submissions by itself. You need a form service or another back end, and that means you collect personal data. Collect the minimum, explain what you do with it, and read the provider's terms. Showing an email address is simpler.
Will an AI-made page rank well in search?
Ranking depends on useful, original content, clear titles and headings, fast loading and links from other sites, not on whether AI wrote the code. No one can promise a ranking. Put your real knowledge into the words.
How do I keep the site up to date?
Keep a copy of your files, review the site every quarter, check links, dates and prices, renew your domain and secure your accounts. When AI changes the code, review the new version as carefully as the first.
Write as you go
My notes
Use this scratchpad for your own notes, working or answers as you read. Notes are saved in this browser on this device. Downloading makes a local copy; it does not send your notes to Mickai.
Consolidate your learning
Review your work
Work through the exercises and questions, then compare your reasoning with the worked answers. A scored exam and verifiable certificate are not yet available for this course.
Review the questionsLearn the language
Key terms
- Static website
- A site made of ready-made files that a server delivers as they are, with no database or login behind them.
- HTML
- The language that gives a web page its structure and meaning: headings, paragraphs, links, images and lists.
- CSS
- The language that controls how a page looks: colours, fonts, spacing and layout.
- JavaScript
- A programming language that adds behaviour to a page and runs on the visitor's own device.
- Hosting
- A service that stores your website files on an always-on computer and serves them to visitors.
- Domain name
- The human-friendly address of a site, such as yourname.co.uk, which you rent from a registrar.
6 of the workbook's 12 terms. The complete glossary is in the workbook.
Follow the evidence
Sources and checks
Facts last checked: .
These workbooks use AI assistance. See how the workbooks are made.
- What is GitHub Pages?GitHub Docs
- GitHub Pages limitsGitHub Docs
- Netlify pricingNetlify
- Cloudflare Pages overviewCloudflare Developer Docs
- Introduction to Web AccessibilityW3C Web Accessibility Initiative
- Understanding Success Criterion 1.4.3: Contrast (Minimum)W3C Web Accessibility Initiative
- SEO Starter GuideGoogle Search Central
- Guidance on the use of storage and access technologiesInformation Commissioner's Office
- Basic HTML syntaxMDN Web Docs
Created by Mickarle Wagstaff-Irons - Micky Irons with the Mickai team. Published by Mickai LTD. Last updated 25 September 2026.
NextKeep going
Where to go next
Recommended for you
What is an AI agent? Agentic AI explained
A plain-English guide to AI agents: how they differ from chatbots and workflows, the parts and the loop, levels of autonomy, the main risks and how to keep a human in control.
Recommended for you
Build your first chatbot
Build a chatbot that behaves: model access, system prompt, history and context limits, guardrails, tone, a test set, logging and cost, on a no-code path or a code path.