Published May 1, 2026 · Updated May 20, 2026

I Built a Website with Claude AI in 45 Minutes (2026 Tutorial)

YouTubeJoshua Kishaba·AI Mastery·Subscribe
45 minbeginnerfreemium

Watch me build a working website with Claude AI in 45 minutes — full prompts, code, screenshots. No web dev experience needed. Updated May 2026.

This page may contain affiliate links. We may earn a commission at no extra cost to you. Full disclosure.

How to Build a Website Using Claude AI: Complete Step-by-Step Tutorial (2026)

Core Actions
  1. 01Visit Claude AI and open a new conversation
  2. 02Write a detailed prompt describing your website's purpose, sections, design style, colors, and technical requirements
  3. 03Review and refine your prompt for completeness before submitting
  4. 04Submit your request and analyze Claude's generated HTML, CSS, and JavaScript code
  5. 05Request targeted refinements through follow-up prompts if the design needs adjustments
  6. 06Copy and save the code into separate HTML, CSS, and JavaScript files
  7. 07Open the HTML file in your browser and test responsiveness across devices

Introduction

Claude AI can generate clean, responsive website code from natural language descriptions. Whether you're creating a portfolio, business landing page, or blog, you can communicate your design vision conversationally and receive production-ready HTML, CSS, and JavaScript in return.

This tutorial covers the complete workflow: accessing Claude, crafting effective prompts, analyzing generated code, refining designs through iteration, and implementing your website. No prior coding experience is required, though familiarity with HTML and CSS concepts will help you customize the output further.

Step 01

Navigate to the Claude AI Platform

Open your preferred web browser and visit Claude AI through Google search.

Click the official Claude AI link to load the interface.

Open your preferred web browser and visit Claude AI through Google search. Type "Claude AI" into the Google search bar and press enter. The official Claude website should appear near the top of the results—verify you're accessing the legitimate platform before proceeding.

Click the official Claude AI link to load the interface. You'll see a clean workspace with a text input area where you can begin your conversation with the AI assistant. This conversational design allows you to explain your project as you would to a skilled web developer.

Step 02

Craft Your Website Generation Prompt

Your prompt is the foundation of successful code generation.

Begin by describing the website's fundamental purpose.

Define your target audience explicitly.

Your prompt is the foundation of successful code generation. Clear, detailed instructions correlate directly with higher-quality website output. Treat this as a creative brief for a professional web designer—specificity drives better results.

Begin by describing the website's fundamental purpose. Specify whether you're building a portfolio to showcase creative work, a small business landing page to attract customers, or a blog to share content. This context helps Claude understand the appropriate structure and components to include.

Define your target audience explicitly. Mention who will visit the site—potential clients, employers, customers, or readers. This information influences design decisions like tone, layout complexity, and content sections Claude will recommend.

Specify Visual Design Elements

Describe the overall aesthetic using precise terminology: "modern and minimalist," "vibrant and playful," or "professional and corporate." Include specific color preferences with hex codes if you have a brand palette ready.

Request typography choices that match your vision. Mention "clean sans-serif fonts" or "elegant serif typography," and you can suggest specific Google Fonts by name. Font choices significantly impact your site's personality.

List the specific sections your website needs. Common sections include a hero banner with a compelling headline, an about section, a services grid, testimonials from clients, and a contact area. Each section serves a distinct purpose in your site's narrative.

Request Specific Code Requirements

Ask Claude explicitly for "clean semantic HTML" to ensure well-structured, accessible markup. Request "modern CSS" that follows current best practices. Specify whether you need JavaScript for interactive elements like form validation, smooth scrolling, or dynamic navigation.

Emphasize responsive design in your prompt. State that the website must look excellent on phones, tablets, and desktop computers. This ensures Claude generates code with appropriate media queries and flexible layouts.

Include Asset and Accessibility Considerations

Reference any visual assets you have ready—logos, images, or brand materials. Ask Claude to include placeholder references with descriptive alt text. This approach structures your HTML accessibly from the start and makes asset swapping straightforward later.

Request semantic HTML elements that support screen readers and assistive technologies. Mention that proper heading hierarchy, ARIA labels, and keyboard navigation support matter. These considerations make your website usable for all visitors.

Step 03

Review and Refine Your Prompt Before Submission

Perform a thorough review before sending your request.

Add specific details about call-to-action elements.

Consider the tone of voice for any written content.

Perform a thorough review before sending your request. Scan every detail to identify missing elements. This quick audit saves significant time in revision cycles.

Add specific details about call-to-action elements. Specify exact button text like "Get Started," "Contact Us," or "View Portfolio." Describe button styles—whether they should be filled, outlined, rounded, or square.

Consider the tone of voice for any written content. Tell Claude whether copy should be formal and professional, friendly and conversational, or energetic and persuasive. This guidance ensures generated placeholder text matches your brand personality.

Include any technical preferences or constraints. Mention if you need the code to work with a specific platform, if you prefer vanilla CSS over frameworks, or if you want comments in the code explaining key sections.

Step 04

Submit Your Request to Claude AI

Locate the submit button once you've thoroughly reviewed your prompt.

Claude will process your request, and you'll see a loading animation or status message.

If you forget an important detail immediately after submitting, you can add a follow-up message in the same conversation thread.

Locate the submit button once you've thoroughly reviewed your prompt. The interface displays this as a send icon or Submit button near the text input area. Click this button to transmit your request.

Claude will process your request, and you'll see a loading animation or status message. Processing time varies based on complexity but typically takes only moments.

If you forget an important detail immediately after submitting, you can add a follow-up message in the same conversation thread. Claude operates conversationally, so you can build on previous messages. Each follow-up is understood in the context of your entire conversation history, allowing natural, iterative refinement.

Step 05

Analyze the Generated Code Response

Allow Claude a moment to complete generating your website code.

The response typically begins with an explanation of Claude's approach.

Following the explanation, you'll see HTML code blocks containing your markup.

Allow Claude a moment to complete generating your website code. The response loads in distinct sections, appearing progressively on your screen. This staged delivery helps you process information in manageable chunks.

The response typically begins with an explanation of Claude's approach. This introduction describes the structure chosen, the reasoning behind design decisions, and how components work together. Read this section carefully for valuable context.

Following the explanation, you'll see HTML code blocks containing your markup. These blocks are syntax-highlighted for easy reading. The HTML defines your website's structure—sections, containers, headings, paragraphs, and elements you requested.

The CSS code block handles all visual styling. This section includes layout rules, color definitions, typography settings, spacing, and responsive media queries. CSS transforms your plain HTML structure into a visually appealing design.

If you requested interactive features, Claude may include JavaScript code blocks. This code might handle navigation behavior, form submissions, or dynamic content updates. Claude often adds helpful comments explaining each section.

Understand the Structure and Customization Points

Read Claude's explanation section thoroughly to understand page organization. Pay attention to descriptions of HTML hierarchy—how sections nest within each other and where key elements are positioned. This knowledge is crucial for accurate customizations.

Claude will typically point out specific areas requiring customization. Look for notes about placeholder content that needs replacement, image source attributes needing your file paths, and text blocks where you should insert your actual copy.

The explanation often includes guidance on extending the layout. Claude might suggest how to add additional sections, duplicate components like testimonial cards, or modify the color scheme. These tips help you grow beyond the initial generation.

Step 06

Refine the Design Through Iterative Prompts

If the first draft doesn't exactly match your vision, prepare targeted refinement requests.

Request specific color adjustments by referencing exact elements.

Adjust spacing and layout by identifying specific areas that feel cramped or too loose.

If the first draft doesn't exactly match your vision, prepare targeted refinement requests. Be specific about what needs adjustment rather than asking Claude to "make it better." Small, focused tweaks produce better results than vague requests.

Request specific color adjustments by referencing exact elements. For example, "Change the hero banner background to navy blue (#1a365d)" or "Make all button text white instead of gray." Precise instructions yield precise modifications.

Adjust spacing and layout by identifying specific areas that feel cramped or too loose. Request changes like "Increase the padding around the services cards to 32px" or "Reduce the margin between the hero section and about section." These targeted adjustments significantly impact visual polish.

Typography refinements can transform your site's personality. Ask Claude to adjust font sizes for better hierarchy, change font weights to emphasize important text, or switch font families entirely. You might say "Make the main headline larger and bold" or "Change body text to a lighter font weight."

Add or Modify Structural Components

Request additional components if you realize you need them after seeing the initial design. Ask Claude to add a navigation bar with specific menu items, insert a footer with social media links and copyright information, or create a new section you didn't originally request.

Modify existing components by describing desired changes. If the services grid has three columns but you need four, ask for that adjustment. If testimonial cards need images alongside quotes, specify that addition. Claude can restructure components while maintaining overall design consistency.

Request alternative layout options for specific sections. You might ask Claude to convert a horizontal layout to a vertical stack on mobile devices, or change a single-column design to a two-column layout on larger screens. These responsive adjustments ensure your site looks intentional across all devices.

Step 07

Implement Your Generated Website Code

With your refined code ready, copy the HTML code from Claude's response.

Create a separate file for your CSS code.

If Claude provided JavaScript, create another file with a .

With your refined code ready, copy the HTML code from Claude's response. Look for the copy button typically located in the corner of each code block. Paste this code into a new file and save it with an .html extension, such as "index.html."

Create a separate file for your CSS code. Copy the CSS from Claude's response and paste it into a new file saved with a .css extension, such as "styles.css." Ensure your HTML file properly links to this CSS file using a link tag in the HTML head section.

If Claude provided JavaScript, create another file with a .js extension. Copy the JavaScript code into this file and ensure your HTML references it with a script tag, typically placed just before the closing body tag.

Open your HTML file in a web browser to preview your website. Simply double-clicking the file usually opens it in your default browser. You should see your fully styled website exactly as Claude designed it.

Test Responsiveness and Functionality

Resize your browser window to test responsive behavior. Make the window narrower to simulate mobile devices and wider to simulate tablets and desktops. Observe how the layout adapts—sections should stack, text should resize, and navigation should adjust appropriately.

Test all interactive elements if your site includes JavaScript functionality. Click buttons, submit forms, and interact with navigation menus. Verify that everything behaves as expected and produces no errors in the browser console.

Check your website in multiple browsers if possible. Open it in Chrome, Firefox, Safari, and Edge to ensure cross-browser compatibility. While modern CSS is generally well-supported, occasional differences may appear that require minor adjustments.

Conclusion

You've successfully accessed Claude AI, written a comprehensive prompt, submitted your request, and analyzed the generated results. This process demonstrates how AI accelerates website development by generating clean, responsive code from natural language descriptions.

With clear communication and iterative refinement, Claude delivers a polished, professional starting point for your website. The code includes semantic HTML for accessibility, modern CSS for visual appeal, and optional JavaScript for interactivity. You also receive guidance on customizing the design to match your brand identity.

Remember that result quality directly correlates with prompt specificity. The more detail you provide about purpose, audience, design preferences, and technical requirements, the closer Claude's first draft will align with your vision.

Prompt Library

Copy-paste prompts that work

Each prompt has been tested and optimized for this workflow. Customize the bracketed sections.

Portfolio Website
Create a personal portfolio website for a graphic designer. Include a hero section with a large headline and call-to-action button, an about section with a photo placeholder and bio text, a portfolio grid displaying 6 project thumbnails, and a contact section with email and social media links. Use a modern, minimalist design with a color palette of navy blue (#1a365d), white, and coral (#ff6b6b) accents. Generate clean semantic HTML, modern CSS with flexbox, and make it fully responsive for mobile, tablet, and desktop.
Business Landing Page
Build a landing page for a local coffee shop. Include a hero banner with the shop name and 'Order Now' button, an about section describing the business, a menu section showing 4 coffee categories in a grid layout, customer testimonials in cards, and a contact section with address and hours. Use warm, inviting colors—cream background (#f4f1ea), coffee brown (#6f4e37), and forest green (#2d5016) accents. Request clean HTML5, modern CSS with grid layout, and JavaScript for a simple image slideshow in the hero section. Ensure responsive design.
Blog Website
Create a clean blog website layout. Include a header with site title and navigation menu, a featured post section at the top, a grid of 6 blog post preview cards with thumbnail images and excerpts, a sidebar with author bio and categories, and a footer with copyright and social links. Use a readable, content-focused design with white background, dark gray text (#333333), and blue accent color (#0066cc) for links. Generate semantic HTML5, modern CSS, and make it mobile-responsive with a hamburger menu for small screens.
SaaS Landing Page
Design a SaaS product landing page for a project management tool. Include a hero section with headline, subheadline, and 'Start Free Trial' button, a features section with 6 feature cards including icons and descriptions, a pricing table comparing three tiers, customer logos section, a testimonials carousel with 5 quotes, and a footer with links and newsletter signup. Use a professional color scheme with primary color #0052ff, white background, and dark gray (#1a202c) text. Generate responsive HTML5, modern CSS with Flexbox, and JavaScript for the testimonials carousel. Ensure accessibility with semantic HTML and ARIA labels.
Event Registration Site
Build an event registration website for a virtual conference. Include a hero section with event name, date, and 'Register Now' button, an about section describing the event and speakers, a schedule section showing sessions in a timeline format, a speakers grid with profile cards including photos and bios, a FAQ section with collapsible answers, and a registration form. Use an energetic color palette with purple primary (#7c3aed) and orange accents (#ff8c42). Request clean semantic HTML, modern CSS with CSS Grid, and JavaScript for timeline interactivity and form validation. Make it fully responsive.
Service Agency Website
Create a service-based business website for a digital marketing agency. Include a header with navigation, a hero section with 'Book a Consultation' button, a services section displaying 5 services in cards with icons, a case studies section showing 4 project examples with before/after comparisons, a team section with staff bios and photos, client testimonials in a carousel, pricing options table, and footer with contact information. Use a corporate color scheme with navy (#0f3460), gold (#e94560), and white. Generate semantic HTML5, modern CSS with Flexbox and Grid, JavaScript for carousel functionality, and ensure WCAG accessibility standards.
E-commerce Product Page
Design an e-commerce product page for a fashion retailer. Include a product image gallery with zoom functionality, product details section with name, price, rating, and description, size and color selectors, quantity selector, 'Add to Cart' and 'Wishlist' buttons, product specifications table, a reviews section with ratings and customer comments, related products carousel, and a shipping information section. Use a clean, modern aesthetic with white background, dark text (#2c3e50), and brand accent color #d63384. Request semantic HTML5, modern CSS, and JavaScript for image gallery, color/size selectors, and reviews carousel. Ensure mobile responsiveness.
Professional Resume Website
Build a professional resume website for a software engineer. Include a header with name and professional title, a summary section highlighting key skills, an experience section with previous roles and achievements listed chronologically, an education section, a skills section organized by category (Frontend, Backend, Tools), a projects section showcasing 4 side projects with descriptions and GitHub links, and a contact section with email and LinkedIn. Use a minimalist professional design with white background, dark gray text, and subtle blue (#0077b6) accent color for links. Generate clean semantic HTML5, modern CSS emphasizing typography and whitespace, and ensure full responsiveness. Include print-friendly styling.
Technical Specifications

Claude Technical Specifications

Free Tier✓ Yes
Api Access✓ Yes
Mobile App✓ Yes
Voice Mode✓ Yes
Web Search✓ Yes
File Upload✓ Yes
Code Execution✓ Yes
Context WindowUp to ~1M tokens (model-dependent)
Image GenerationNone
Plugins Extensions✓ Yes
Context Window DescSupports very long documents, codebases, and project histories in a single session.
Troubleshooting

Common issues

Expert Tips

Go further

Use Claude's 'Projects' feature to maintain consistent design systems across multiple website pages by storing your color schemes, typography preferences, and component styles in the project knowledge base.

When building multi-page websites, this ensures every page you generate maintains perfect visual consistency without having to repeat all your design specifications in each prompt.

Ask Claude to include CSS custom properties (variables) for colors, spacing, and typography in the generated code, making it dramatically easier to adjust your entire design by changing just a few values at the top of your stylesheet.

This becomes invaluable when clients request color changes or when you're testing different design variations—you modify one variable instead of finding and replacing dozens of values throughout your CSS.

Request that Claude generate your HTML with BEM (Block Element Modifier) naming conventions for CSS classes, which makes the code significantly more maintainable and easier to understand when you return to customize it weeks or months later.

Professional developers use BEM methodology to create self-documenting code where class names clearly indicate the purpose and relationship of elements, reducing confusion during updates.

Continue Learning

More tutorials

Explore More Tools

Works well with this

This tutorial was created by Joshua Kishaba and produced using AI-assisted editorial tools. All recommendations reflect genuine editorial opinion based on hands-on testing. This page may contain affiliate links — see our full disclosure.