Kazhugu
← Study

Study · 12 layers ·

Building websites in the AI era: what everyone needs to know

A website looks simple from the outside: you type an address and a page appears. Underneath, there are many layers stacked on top of each other: the network that finds the right computer, the files that describe the page, the design choices that make it clear, the hosting that keeps it online, and the habits that keep it safe when people change it. AI tools can now write a lot of the code, but they do not remove any of these layers. They make it faster to build things and just as easy to build them badly. This page walks through every layer from the bottom up, in plain words, so that a business owner, a developer, a colleague who updates the site, or a client briefing a studio can all follow what is going on and ask the right questions.

01

How the web works

Browsers, servers, addresses and the three languages every page is made of.

The web is a conversation between two computers. Your device runs a browser, such as Chrome, Safari or Firefox. Somewhere else, a computer called a server holds the website. When you open a page, the browser sends a request to the server, and the server sends back a response with the files the browser needs. The rules for that conversation are called HTTP. HTTPS is the same thing with encryption, so nobody in between can read or change what is sent.

Computers on the internet find each other by number, called an IP address, but people remember names like example.com. The Domain Name System, or DNS, is the internet’s phone book: it turns the name into the number. Your computer asks a DNS resolver, which looks the name up and remembers the answer for a while, so the next visit is faster.

The files that come back are written in three languages that every browser understands. HTML describes what is on the page: headings, paragraphs, links, images, forms. CSS describes how it looks: colours, fonts, spacing and layout. JavaScript describes how it behaves: what happens when you click, type or scroll. A good page works with HTML alone, looks right with CSS, and only uses JavaScript where it really adds something.

  • Browser asks, server answers. Every page load is a request and a response.
  • DNS turns a name into an address. If DNS is wrong, nobody can reach the site.
  • HTML is the content, CSS is the look, JavaScript is the behaviour.
  • HTTPS is expected on every site today, not just shops.
02

Design foundations

Layout, type, colour and design systems, and where to look for good work.

Design on the web is mostly about making things easy to understand. Layout decides where things sit and what people see first. A clear page has one main message, a visible next step, and enough empty space that the eye can rest. Because people visit on phones, tablets and large screens, layouts must be responsive: they rearrange themselves to fit the screen instead of being drawn for one size.

Typography is the choice and arrangement of letters. Most of a website is text, so type does most of the work. Pick one or two typefaces, use a small set of sizes that step up in a steady way, keep lines a comfortable length, and leave enough space between lines. Colour should do a job: show what can be clicked, group related things and keep enough contrast that text is easy to read for everyone.

A design system is a shared kit of rules and parts: colours, type sizes, spacing, buttons, forms and the guidance on when to use each. It keeps a site consistent as it grows and as different people work on it. Large public examples, such as the UK government’s design system or Google’s Material Design, are free to read and teach a lot about why each rule exists.

To train your eye, look at a lot of good work. Award sites and curated galleries collect websites that juries or editors think are well made. Use them for ideas about layout, motion and type, but remember they reward striking work; a business site also has to be fast, clear and easy to use.

  • Start with the message and the next step, then design around them.
  • Few fonts, few sizes, a steady spacing scale.
  • Colour carries meaning; contrast keeps text readable.
  • A design system is how a site stays consistent when many people touch it.
03

Design tools

Where a site is drawn, discussed and handed to the people who build it.

Before code, most sites are drawn. A wireframe is a rough sketch that shows what goes where, without colour or images. A mock-up adds the real look. A prototype links screens together so you can click through and feel how the site will work. Each step is cheaper to change than the one after it, so mistakes are best caught early.

Figma is the tool most web teams use today. It runs in the browser, many people can work in the same file at once, and clients can leave comments right on the design. Developers can inspect sizes, colours and spacing directly. Penpot is an open-source alternative that works in a similar way.

Design tools now include AI features that can draft layouts or fill in placeholder content. They are useful for exploring ideas quickly, but the result still needs a person to check that it fits the brand, the content and the people who will use it.

  • Wireframe, then mock-up, then prototype: cheap changes first.
  • Keep one shared design file as the source of truth.
  • Name colours, type styles and components in the tool the same way they are named in code.
04

Programming basics

What code is, why JavaScript and TypeScript dominate the web, and what you need to read it.

A program is a list of exact instructions for a computer. Programming languages let people write those instructions in words and symbols that are easier to read than machine code. The ideas are the same in almost every language: values stored in variables, decisions with if and else, repeating work with loops, and grouping steps into functions you can reuse.

On the web, JavaScript is the language that runs inside every browser, and it can also run on servers. TypeScript is JavaScript with types added: you say what kind of data each thing should hold, and a checker warns you before the code runs if something does not match. Many teams use TypeScript because it catches whole groups of mistakes early, which matters even more when an AI writes part of the code.

Even if you never write code yourself, it helps to read it. Knowing the basics lets you understand what an AI tool or a developer changed, spot when something looks wrong, and ask better questions. The free courses below are a good place to start.

  • Variables, conditions, loops and functions are the core of nearly every language.
  • JavaScript runs in the browser; TypeScript adds checks before it runs.
  • Reading code is a skill worth having even if you never write it.
05

Frameworks and builders

Static sites, web apps and no-code builders, and how to choose between them.

The first question is not which tool, but what kind of site. A static site is mostly the same for every visitor: a company site, a portfolio, a blog. Its pages can be built once and sent as ready-made files, which makes them fast, cheap and hard to break. A web app changes for each person: logins, dashboards, shopping carts, bookings. It needs code running on a server and usually a database.

For a static or mostly static site, plain HTML and CSS are enough for a few pages. A static site generator such as Astro lets you write pages from reusable parts and content files, then builds plain, fast HTML. For an app with logins and live data, a framework such as Next.js gives you pages, server code and data loading in one project. Picking an app framework for a simple brochure site adds weight you do not need.

If the people who run the site are not developers, a builder or content management system may be the right answer. WordPress powers a very large share of the web and has plugins for almost everything, but it needs regular updates to stay safe. Webflow and Framer let designers build visually and publish without writing code, with hosting included. The trade-off is that you work inside their rules and pay their prices.

A useful test: who will change the site most often, and how? If it is a marketing team adding pages each week, give them a builder or a content system they can use. If it is developers shipping features, use code and a framework.

  • Static site: same for everyone, fast and simple. Astro or plain HTML.
  • Web app: different for each user, needs a server and data. Next.js and similar.
  • No-code: WordPress, Webflow or Framer when non-developers own the content.
  • Choose by who changes the site and how often, not by what is fashionable.
06

Hosting, domains and email

Where the site lives, how people reach it, and how business email stays trusted.

Hosting means renting space on a computer that is always on and connected. Static hosts, such as Cloudflare Pages, Netlify and Vercel, store your built files and copy them to many places around the world through a content delivery network, or CDN, so each visitor gets them from somewhere nearby. They are fast, cheap or free for small sites, and there is no server for you to look after.

Serverless and edge hosting run small pieces of code only when a request arrives, close to the visitor. You pay for use instead of for a machine that sits idle, and the provider handles the computers. Cloudflare Workers and Vercel functions work this way. A virtual private server, or VPS, from a company such as Hetzner or DigitalOcean, is your own slice of a machine. It gives the most control for the money, but you are responsible for updates, security and backups. Managed WordPress hosting is a middle path: the host keeps WordPress running and updated for you.

A domain name is rented yearly from a registrar. The registrar holds the name; the DNS settings point it to your hosting and your email. Keep the registrar login in the company’s name, with more than one person able to reach it. Losing access to the domain is one of the most painful problems a business can have.

Email on your own domain needs three DNS records so that other mail servers trust it: SPF lists who may send for you, DKIM signs each message, and DMARC tells receivers what to do with mail that fails those checks. Large mailbox providers such as Gmail now require these for bulk senders, and without them your mail is more likely to land in spam.

  • Static host: built files on a CDN. Best for most company sites.
  • Serverless or edge: code that runs per request, no machine to manage.
  • VPS: full control and full responsibility.
  • Managed WordPress: the host maintains WordPress for you.
  • Own the domain account in the company’s name and set up SPF, DKIM and DMARC.
07

Performance and accessibility

Fast pages that everyone, including disabled people, can use.

Performance is how quickly a page shows up and responds. Google measures three things it calls Core Web Vitals: how fast the main content appears, how quickly the page reacts when you tap or type, and whether things jump around while it loads. Big images, heavy JavaScript and too many third-party scripts are the usual causes of slow pages. Most fixes are simple: smaller images in modern formats, less script, and fonts loaded carefully.

Accessibility means people with disabilities can use the site. Some people use screen readers that read the page aloud, some navigate with a keyboard only, some need high contrast or larger text, and some find motion difficult. The Web Content Accessibility Guidelines, or WCAG, are the shared standard. Many countries require public bodies, and often businesses, to meet it.

The good news is that the basics overlap with good design: real headings in order, text descriptions on images, labels on form fields, enough colour contrast, and buttons that work with a keyboard. Automated checkers find some problems, but not all. Try your own site with only the keyboard, and with a screen reader, at least once.

  • Measure first with PageSpeed Insights or Lighthouse, then fix the biggest cause.
  • Compress and resize images; ship less JavaScript.
  • Use real HTML elements: headings, buttons, labels, lists.
  • Automated tests catch only part of accessibility; test by hand too.
08

Being found: SEO, AEO, GEO and business profiles

How search engines, AI answers and maps decide to show your business.

Search engine optimisation, or SEO, means making it easy for search engines to find, understand and trust your pages. The basics have not changed: pages that answer real questions, clear titles and headings, descriptive links, fast loading, and a site that works on phones. Google Search Console shows which searches bring people to your site and which pages have problems.

Answer engine optimisation (AEO) and generative engine optimisation (GEO) are newer names for the same goal in AI tools: being the source that chat assistants and AI search summaries quote. These terms are young and not standardised. Google says there are no extra requirements and no special files needed to appear in its AI features; the same helpful, well-structured content works. Structured data, a standard way of labelling facts like your address, opening hours or prices, helps machines read your page correctly.

For a local business, the map listing often matters more than the website. A Google Business Profile puts your name, address, hours, photos and reviews on Google Search and Maps. Keep the details exactly the same as on your site, choose the right category, and answer reviews.

On Meta’s side, a business portfolio in Meta Business Suite is the home for your Facebook Page, Instagram account and ad accounts. Create it under a company email, add colleagues with their own logins and the right roles, and never run the company page from one person’s private account.

  • Write for people first; search engines and AI tools reward the same thing.
  • Use clear titles, headings and structured data.
  • Claim and verify your Google Business Profile; keep details consistent everywhere.
  • Set up Meta Business Suite with company ownership and named roles.
  • Be sceptical of anyone selling secret AI-search tricks.
09

AI in the workflow

What language models are good and bad at, the kinds of AI tools, and why vibe coding fails.

A large language model, or LLM, is a program trained on a huge amount of text to predict what comes next. That makes it very good at drafting, summarising, explaining, translating and writing ordinary code that looks like code it has seen many times. It is weak where it has to know facts it was never shown, keep track of a large system it cannot see, or be sure it is right. It can state wrong things with full confidence; people call this hallucination.

There are three common ways to use AI for building sites. Chat assistants answer questions and draft text or snippets that you copy in. Coding assistants live in your editor and suggest or change code in the files you are working on. Agents are given a goal and can take several steps on their own: read files, run commands, edit code and check results. The more freedom a tool has, the more it can do for you, and the more carefully you need to check what it did.

Are agents worth it now? The honest answer is: for some work, yes, with care. A careful 2025 study found that experienced developers on their own large projects were slower with the AI tools of early 2025, even though they felt faster. The same researchers reported in 2026 that developers were likely sped up by newer tools, but that their own data had become too biased to say by how much. Anthropic’s own guidance is to start with the simplest setup that works and add autonomy only when it clearly helps.

Vibe coding is a name for accepting whatever the AI writes without reading it. It can be fine for a throwaway experiment. For a real website it fails in predictable ways: security holes, leaked passwords and customer data, broken accessibility, duplicated code nobody understands, and no way to fix the next problem. Studies have found that people using AI assistants wrote less secure code while feeling more confident about it.

  • Good at: drafts, explanations, boilerplate, refactors you can check.
  • Weak at: unknown facts, large hidden context, knowing when it is wrong.
  • Chat for thinking, coding assistants for edits, agents for multi-step tasks.
  • More autonomy means more review, not less.
  • Never ship code nobody has read.
10

Setting working principles with Claude

How to give an AI agent clear rules, small tasks and a way to check its own work.

Claude Code is Anthropic’s coding agent. It runs in your terminal, editor or browser, reads your project, edits files and runs commands. Because it can act, the way you set it up matters more than how cleverly you phrase a single request.

The project’s rules live in a file called CLAUDE.md at the root of the project. Claude reads it at the start of every session. Anthropic’s advice is to keep it short and to write down only what Claude cannot work out by reading the code: the exact commands to build, test and lint, setup steps that are not obvious, and the few rules that really matter. The /init command writes a first draft that you then trim. Rules that must never be broken, such as “never read the secrets file”, belong in permission settings or hooks, which the tool enforces, rather than in a note the model might skip.

Work in small steps. Ask for one change at a time, describe the goal and where to look, and say how to check it, for example “write a failing test, then fix it”. Give Claude something it can run that tells it whether the work is done: tests, a type check, a linter. Ask for evidence, meaning the command it ran and the output, not just “all tests pass”. If it goes in the wrong direction, stop it early, roll back with the rewind feature, or start a fresh session with a clearer request.

Review every change before it goes live, exactly as you would review a colleague’s work. Read the diff, run the site, and keep everything in version control so any change can be undone. The agent writes the first draft; a person is still responsible for what ships.

  • One short CLAUDE.md with commands and the rules that matter.
  • Hard rules go in permissions and hooks, not in prose.
  • Small, specific tasks, each with a way to verify it.
  • Ask for evidence, then read the diff yourself.
  • Commit often so every step can be undone.
11

Workflow and DevOps

Version control, environments, automatic checks, backups and monitoring.

Version control keeps a full history of every change to the code, who made it and why. Git is the standard tool, and GitHub is the most common place to store Git projects online. Work happens on a branch, a separate copy of the code. When it is ready, a pull request shows exactly what changed so someone can review it before it is merged into the main version. This is your safety net, and it matters even more when an AI is making the changes.

Most teams keep at least three environments: your own computer for development, a preview or staging copy where changes can be tried safely, and production, the live site. Secrets such as passwords and API keys are stored as settings in each environment, never written into the code.

CI/CD stands for continuous integration and continuous delivery. Every time code is pushed, a service such as GitHub Actions runs the tests, the type check and the linter automatically, and if everything passes, it can deploy the site. Many hosts also create a preview link for every pull request, so non-developers can see a change before it goes live.

Backups and monitoring are what save you on a bad day. Back up the database and uploaded files, store a copy somewhere else, and test that you can actually restore them. An uptime monitor tells you when the site is down, and an error tracker such as Sentry tells you when visitors hit errors, often before anyone complains.

  • Everything in Git; every change through a reviewed pull request.
  • Development, preview and production kept separate.
  • Tests and checks run automatically on every push.
  • Backups are only real once you have restored one.
  • Know about downtime and errors before your customers tell you.
12

Useful tools for the next step

Tools worth learning once the basics are in place.

Once a site is running, a handful of tools make it easier to keep quality high. Component libraries such as shadcn/ui give you accessible buttons, menus and dialogs you can copy into your project and adapt, instead of building each one from scratch. Storybook lets you view and test each component on its own.

Automated browser tests, written with a tool like Playwright, click through your real site the way a visitor would and fail if something breaks. A formatter and linter such as Biome keeps code style consistent and catches simple mistakes, which is useful when several people and an AI all write code in the same project.

Product analytics tools such as PostHog show which pages people use and where they drop off, so design decisions are based on evidence. Keep analytics light and respect privacy laws: collect only what you will actually look at.

  • Borrow accessible components instead of rebuilding them.
  • Let end-to-end tests click through the site for you.
  • One formatter and linter for the whole team, humans and AI alike.
  • Measure real use before redesigning.
→

Paths through it

What each kind of reader needs, step by step.

  • Path · Web design and AI

    A company planning a website

    Decide what to build, who owns it and how it stays healthy after launch.

    1. Write down who the site is for, what they should do on it, and how you will know it works.
    2. Decide who will update it and how often; that decides between a builder like Webflow or WordPress and a coded site.
    3. Register the domain in the company’s name, with at least two people able to log in.
    4. Set up business email with SPF, DKIM and DMARC before you send anything important.
    5. Choose hosting that matches the site: a static host for a brochure site, managed hosting for WordPress, a server only if someone will look after it.
    6. Ask for accessibility and speed to be checked before launch, not after.
    7. Claim your Google Business Profile and set up Meta Business Suite under company accounts.
    8. Agree who checks backups, uptime alerts and updates every month.
  • Path · Web design and AI

    A developer starting a project

    A clean setup where AI help speeds things up without lowering quality.

    1. Pick the simplest stack that fits: plain HTML or Astro for content, Next.js only if you need an app.
    2. Create the Git repository first and protect the main branch so changes need a pull request.
    3. Add a formatter, linter, type check and at least one test, and run them in CI on every push.
    4. Write a short CLAUDE.md with the build, test and lint commands and the few rules that matter.
    5. Put hard limits, such as no access to secret files, in permission settings rather than prose.
    6. Give the agent one small task at a time, with a way to verify it, and read every diff.
    7. Deploy previews for each pull request, and add error tracking and an uptime monitor before launch.
  • Path · Web design and AI

    An employee who manages or updates the site

    Make everyday changes safely without breaking anything.

    1. Learn where content lives: the CMS, the builder, or files in a repository.
    2. Use your own login, never a shared one, and ask for only the access you need.
    3. Make changes in a draft or preview first and check them on a phone as well as a computer.
    4. Add alt text to every image, use real headings, and keep link text descriptive.
    5. Compress large images before uploading them.
    6. If you use AI to write copy, check every fact, price and promise before publishing.
    7. Keep the opening hours, address and phone number the same on the site, Google and Meta.
    8. Know who to call when something breaks and how to roll back a change.
  • Path · Web design and AI

    A client briefing a studio

    Give the studio what it needs, and know what to ask for in return.

    1. Explain the business goal, the audience and the one action you want visitors to take.
    2. Share examples you like and dislike, from award galleries or competitors, and say why.
    3. List who will edit the site after launch and what they will change, so the right platform is chosen.
    4. Ask how the studio uses AI in its work and how every change is reviewed and tested.
    5. Make sure the domain, hosting, code repository and design files will be owned by your company.
    6. Ask for accessibility and performance targets in the contract, and how they will be checked.
    7. Agree on handover: documentation, logins, training, backups and who looks after updates.
Start a project