COURSE: How to create a single-page website without coding using ChatGPT and Replit Agent
Course Goal
Teach anyone (even without technical knowledge) to create fully functional modern websites:
- • without installing programs,
- • without knowledge of HTML, CSS or JavaScript,
- • using only Replit Agent and ChatGPT.
What you'll learn after the course
Required Tools
1. Account on https://replit.com
- • Free registration via Google or email.
- • Choose the Free plan.
2. ChatGPT (or GPT-5 / ChatGPT Plus)
• Will be used for writing content and queries for Replit Agent.
3. Google Chrome or Safari browser
MODULE 1. Introduction to Replit and ChatGPT
Module goal
After completing this module, you will:
- you will understand what Replit is and how it helps create websites without programming;
- you will learn what Replit Agent is and how it works like an "artificial developer";
- you will learn how to create your first Repl (website project);
- you will learn to write the correct requests (prompts) to the agent via ChatGPT;
- you will create your first basic webpage using artificial intelligence.
🔍 1.1. What is Replit — in simple terms
Replit is an online platform where you can create websites, apps, and programs directly in the browser. It combines:
- • code editor,
- • execution environment (Run),
- • a server that allows you to view the site online.
💡 The main idea of Replit: you don't need to know programming to create a program or a website.
🔹 Benefits of Replit:
1. No software installation
Works in the browser — no need to download Visual Studio Code, XAMPP, or other tools.
2. Cloud storage
All your projects are saved online, accessible from any device.
3. Instant preview
When you click Run, Replit creates a working website that can be opened via a link.
4. AI Agent (Replit Agent)
Built-in artificial intelligence that writes code for you by understanding natural human language.
🤖 1.2. Who is Replit Agent
Replit Agent is an artificial intelligence integrated into Replit. Think of it as a "programmer assistant."
🧠 It:
- • understands human commands ("create a site with a menu and a footer"),
- • generates HTML, CSS, JS code,
- • edits files itself, adds structure, styles, and scripts,
- • can make changes if you ask ("make the colors brighter", "add animation").
🔹 How to open Replit Agent
- Log in to https://replit.com.
- Click the "+ Create" (or "New Repl") button.
- Select the "HTML, CSS, JS" template.
- Find the 🤖 icon or the "Ask AI" text on the right side of the window. Click it — the chat with the agent will open.
Now you can write requests to it just like in ChatGPT.
🔹 Example of a conversation with Replit Agent
👤 You:
"Create a simple one-page website with a header and a button."
🤖 Replit Agent:
"Here is the basic site. I created index.html, style.css, script.js files and linked them. Click Run to see the result."
Replit will create the code automatically — all you have left to do is click Run.
💬 1.3. How ChatGPT helps in website creation
Now you have two "assistants":
ChatGPT
Helps to formulate requests, create text, and brainstorm ideas.
Replit Agent
Executes requests, writes and changes code.
🔹 How they work together:
You first turn to ChatGPT: "Help me formulate a request to Replit Agent so that he creates a one-page website about a coffee shop."
ChatGPT forms a ready, well-written prompt: "Create a coffee shop website with sections: home, menu, reviews, contacts. Add responsive design and a font from Google Fonts."
You copy this prompt into Replit Agent.
Agent creates the site.
The result is a beautiful, structured page without a single line of code from your side.
🧠 1.4. How to write correct requests (prompts)
AI understands natural language, but the more precisely you explain, the better result you will get.
🔸 Effective prompt formula:
[What is needed] + [For whom or about what] + [Desired style or look] + [Additional conditions]
🔹 Examples:
❌ Bad request:
"Make a website."
(not enough information — AI doesn't know the topic, style, structure)
✅ Good request:
"Create a one-page website for a coffee shop with sections: home, menu, reviews, contacts. Make it in a modern minimalist style, with smooth transitions between sections."
⭐ Even better (via ChatGPT):
"Write a prompt to Replit Agent to create a responsive coffee shop website in a minimalist style, with sections: home, menu, contacts. Use beige and brown colors, Open Sans font, smooth scrolling."
| № | Tip | Example |
|---|---|---|
| 1 | Always specify the topic of the site | "fitness trainer website", "designer portfolio" |
| 2 | Add structure | "home, about me, services, contacts" |
| 3 | Describe the style | "minimalist, bright, futuristic" |
| 4 | Specify the font type | "use Poppins or Roboto font" |
| 5 | Ask for responsiveness | "make it mobile-friendly" |
🧰 1.5. Practice: creating your first Repl
🪜 Step 1. Registration
- Go to https://replit.com
- Click Sign Up
- Register via Google or Email
🪜 Step 2. Creating a new project
- Click Create Repl
- Choose the HTML, CSS, JS template
- Name the project, for example: first-landing-page
- Click Create Repl
Replit will create three files:
- • index.html
- • style.css
- • script.js
🪜 Step 3. Opening Replit Agent
- Click "Ask AI" (the 🤖 icon) in the top right corner
- In the open chat, enter the request:
"Create a simple one-page website with the header 'My first site' and a button 'Learn more'. Make the background light and center the text."
🪜 Step 4. Viewing the result
- • Once the Agent has created the code — click Run
- • A preview of your site will open
- • If you click "Open in new tab" — the site will open in a separate tab with its own URL (e.g., https://first-landing-page.username.replit.app)
💬 1.6. Additional: breakdown of the created site structure
Replit Agent creates three basic files — here is a quick overview of each:
index.html
website framework
headers, text, buttons
style.css
styling
colors, fonts, layout
script.js
actions on the page
animations, clicks, effects
No need to change anything manually — AI does it all by itself.
🧭 1.7. Exercise "My first website in 10 minutes"
- Create a new Repl "my-first-ai-website".
- Open Replit Agent.
- Enter the request:
"Create a one-page website about me. Add sections: Hello, About me, My goals. Use calm colors, a modern font, and smooth transitions. Make it responsive for mobile."
- Click Run.
- Open in a new tab — the site is ready 🎉
🧩 1.8. Homework
- Register on Replit (if you haven't yet).
- Create your first Repl (HTML, CSS, JS).
- Use ChatGPT to write a prompt for Replit Agent:
- • The site topic can be anything (e.g., "fitness trainer website", "personal blog", "portfolio").
- Send this prompt to Replit Agent.
- Click Run and save the link to the site.
🎯 Result: you will have your first website, created entirely by artificial intelligence.
📋 Module Summary
| Concept | Explanation |
|---|---|
| Replit | Online environment for creating websites |
| Replit Agent | AI programmer that creates a website based on a description |
| ChatGPT | Assistant that formulates prompts and writes content |
| Repl | One project in Replit (your website) |
| Prompts | Instructions for AI that describe what to create |
🧩 MODULE 2. CREATING A BASIC WEBSITE STRUCTURE
Module goal
After completing this module, you will learn:
- to create a full website framework (HTML, CSS, JS);
- to understand how page sections are built;
- to write correct prompts to generate structure via Replit Agent;
- to set up basic navigation;
- to see the logic of how AI thinks when building a website.
📘 2.1. What is website structure
For any website to work, it needs a framework. Just as a human has a skeleton, a website has an HTML structure.
This framework consists of three main parts:
| File | Role | Example |
|---|---|---|
| index.html | content structure (what is on the page) | headings, paragraphs, buttons |
| style.css | appearance | colors, sizes, fonts |
| script.js | interaction logic | animation, scrolling, clicking |
💡 Replit Agent creates all this automatically — if you explain what is needed correctly.
🧠 2.2. Preparation for work
Before starting:
- Log into your accounthttps://replit.com.
- Click the "+ Create" button → "HTML, CSS, JS".
- Name the project, for example,my-first-landing.
- Wait until the workspace with files opens:index.html
style.css
script.js - On the right side, click 🤖 "Ask AI" — this will open the Replit Agent Chat.
💬 2.3. Preparing a prompt for Replit Agent
Now you need to create the right prompt — a description of the website we want. We first formulate this request in ChatGPT (to make it logical and understandable for the agent), and then we paste it into Replit.
🔹 Example of a prompt to ChatGPT
"Write a prompt for Replit Agent to create a basic one-page website about me. Structure:
- • Main section (greeting and short description)
- • About me (2-3 paragraphs of text)
- • Services (3 blocks with a short description)
- • Contacts (text and a contact button)
Add a top menu that scrolls the page to the desired section. The site should be responsive for phones."
🧠 From ChatGPT, you will receive a ready-made prompt for Replit Agent:
"Create a one-page website with sections: main, about me, services, contacts. Add a navigation menu that smoothly scrolls the page to the sections. Make the site responsive for mobile devices. Create three separate files (index.html, style.css, script.js) and link them together."
📎 Copy this prompt → paste into Replit Agent → press Enter.
⚙️ 2.4. How Replit Agent creates a website
After pressing Enter, the agent will:
- Generate the page's HTML code;
- Create the section structure (
<section>); - Connect CSS and JS;
- Add a navigation menu (with links to sections);
- Add smooth scrolling (via JS);
- Make a basic responsive design.
🔍 Example of the structure the agent creates
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Мій сайт</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#home">Головна</a></li>
<li><a href="#about">Про мене</a></li>
<li><a href="#services">Послуги</a></li>
<li><a href="#contact">Контакти</a></li>
</ul>
</nav>
</header>
<section id="home">
<h1>Привіт, я Михайло!</h1>
<p>Створюю сайти за допомогою штучного інтелекту.</p>
</section>
<section id="about">
<h2>Про мене</h2>
<p>Я працюю з інноваційними інструментами...</p>
</section>
<section id="services">
<h2>Послуги</h2>
<div class="service">
<h3>Створення сайту</h3>
<p>Сучасний сайт за 1 день.</p>
</div>
</section>
<section id="contact">
<h2>Контакти</h2>
<p>Напишіть мені у зручний спосіб.</p>
</section>
<script src="script.js"></script>
</body>
</html>🎨 2.5. What each section contains
| Section | Purpose | What can be added |
|---|---|---|
| Header / Menu | site navigation | logo, buttons "Home", "About me", "Contacts" |
| Home | greeting, main message | large heading, button "Learn more" |
| About | shortly about the author | text + photo |
| Services | list of services or products | 2–4 blocks with icons |
| Contact | form or contacts | email, social media |
🧭 2.6. Smooth scrolling between sections
Replit Agent creates JavaScript that adds a smooth transition effect when clicking on the menu. If you want to understand how it works, here is an example:
document.querySelectorAll('a[href^="#"]').forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});💡 This code adds "soft" scrolling between blocks. If requested, the agent will insert it automatically.
📱 2.7. Website responsiveness
Ask the agent:
"Make the site responsive for mobile devices. On phones, the menu should become vertical, and the text larger."
Replit will automatically add CSS media queries for mobile view, for example:
@media (max-width: 768px) {
nav ul {
flex-direction: column;
align-items: center;
}
}🔧 2.8. Testing and verifying the result
After generation:
- Click the buttonRun.
- A window with your site will appear below.
- Check if everything works (menu, scrolling, sections).
- Click "Open in new tab" — the site will open separately.
- Copy the link (it looks like
https://my-first-landing.username.replit.app).
💡 This is already a real website, available to anyone on the internet.
🧪 2.9. Practical task #1: creating your own website
Task: Create a site about anything that interests you (e.g., fitness, travel, cafe, online school).
Step-by-step:
- Create a new Repl.
- Open Replit Agent.
- Write a prompt (via ChatGPT or on your own):
"Create a one-page website for the cafe 'Coffee Wave'. Sections: main, menu, reviews, contacts. Make navigation with smooth scrolling, modern design, responsiveness for phone."
- Check the result, press Run.
- Change the page title in index.html, if needed.
- Share the link to the site.
🧩 2.10. Common errors and how to fix them
| Error | Reason | Solution |
|---|---|---|
| Menu doesn't work | Missing JS for scrolling | Ask agent: "add smooth scrolling between sections" |
| Content goes off-screen | No responsiveness | "make the site responsive for phones" |
| Text too small | Style not optimized | "increase font size and margins" |
| No CSS or JS | Agent didn't connect files | "link index.html with style.css and script.js" |
🧭 2.11. Homework
- Create 2 different sites:
- • one about personal brand (e.g., "About me");
- • one about a fictional business (e.g., "Cafe", "Beauty Salon").
- Each must have at least 4 sections.
- Use ChatGPT to form a competent prompt for Replit Agent.
- Publish the sites and check how they look on the phone.
🧠 2.12. Module 2 Summary
| Element | What you learned |
|---|---|
| Website structure | Understood how HTML, CSS, JS are built |
| Replit Agent | Learned to create structure via AI |
| ChatGPT | Used for prompt preparation |
| Responsiveness | Made a site that looks good on a phone |
| Practice | Created your first website framework |
🎨 MODULE 3. WEBSITE STYLING — DESIGN, COLORS, FONTS, ANIMATION
Module goal
After completing this module, you will learn how to:
- Make a website beautiful and modern without knowing CSS.
- Formulate prompts for Replit Agent to create a design.
- Use Google Fonts to select fonts.
- Add color schemes, animations, and smooth effects.
- Optimize website appearance for different devices.
📘 3.1. What is "website styling"
In Module 2, we created the framework (HTML structure). Now we need to add visuals — everything the user sees.
This is done via CSS (Cascading Style Sheets) — style sheets. But instead of writing them manually, we will "talk" to Replit Agent about what the design should look like.
🧠 3.2. Principle: "Talk like a designer, not like a programmer"
Replit Agent does not need technical commands — it needs a description of how you want the site to look.
🧩 Examples:
No need to write: "Use display: flex and justify-content: center."
It is enough to say: "Make the blocks arranged in a row in the middle of the page."
🖋️ 3.3. Basic styling prompt
Before you start styling the site, open your project in Replit (the one created in Module 2).
- Click 🤖 Ask AI (Replit Agent).
- Enter the request:
"Add a modern minimalist design: white background, blue accents, black text. Use the 'Poppins' font from Google Fonts. Make smooth transitions when hovering over buttons and links. Adapt the design for phones."
🔍 What the agent will do
- • Will link the Poppins font in index.html.
- • Will add CSS to style.css.
- • Will create spacing, colors, and contrast.
- • Will add transition for smooth effects.
- • Will configure responsiveness.
🎨 3.4. Understanding basic design elements
To confidently formulate prompts, let's break down the key parameters that should be mentioned in prompts.
| Element | Explanation | How to ask |
|---|---|---|
| 🎨 Color scheme | set of main and secondary colors | "white background, blue and gray accents, high-contrast text" |
| 🖋️ Fonts | text style that sets the mood | "use Poppins or Roboto font from Google Fonts" |
| 📏 Spacing and layout | balance between elements | "add more space between sections" |
| 💡 Animation | smooth movement when something appears or reacts | "add smooth entrance effect for elements when scrolling" |
| 📱 Responsiveness | how the site looks on a phone | "on mobile, the menu should be vertical" |
🧩 3.5. Example of a full styling prompt
"Style the site in a minimalist style. Use the colors: white background, blue accents, dark-gray text. Add shadows under service cards. Font — 'Poppins', heading size larger than body text. Create smooth transitions on hover, and make the menu fixed at the top."
💡 Replit Agent will update the CSS automatically.
If you don't like something — just clarify:
"Change blue to purple and make buttons rounded."
🧱 3.6. How Replit Agent changes style.css
Here is an example of styles that the agent can create:
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background-color: #ffffff;
color: #333;
}
header {
background-color: #0066ff;
padding: 20px;
text-align: center;
color: white;
position: fixed;
width: 100%;
top: 0;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 20px;
}
section {
padding: 100px 20px;
max-width: 1000px;
margin: auto;
}
.service {
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
padding: 20px;
border-radius: 10px;
transition: transform 0.3s;
}
.service:hover {
transform: translateY(-5px);
}💬 And all this — without a single line you typed manually.
🎯 3.7. Selecting color palettes
🔹 ChatGPT query:
"Suggest 3 color schemes for a modern personal trainer's website."
Response example:
- Energetic: orange, black, white.
- Premium: black, gold, cream.
- Minimalist: white, gray, blue.
After selecting the scheme — request to Replit Agent:
"Apply the color scheme: orange (#ff6600), black (#000000), white (#ffffff). Use it for buttons, headings, and navigation."
🖋️ 3.8. Working with Google Fonts
Fonts are the "clothes" for text. They can be selected via ChatGPT:
"Recommend stylish Google Fonts for a coffee shop website."
Examples:
- • Playfair Display — classic, elegant.
- • Poppins — modern and readable.
- • Montserrat — geometric, technical.
After choosing a font — request to Replit Agent:
"Use Montserrat font from Google Fonts for the entire site. Make headings bold, and paragraphs regular style."
💡 3.9. Animations and effects
Now let's add smooth movements and soft effects.
🔹 Replit Agent query:
"Add animation for section appearance on scroll. Elements should slightly appear from the bottom with a fade-in effect."
The agent will create code like:
section {
opacity: 0;
transform: translateY(50px);
transition: all 0.6s ease;
}
section.visible {
opacity: 1;
transform: translateY(0);
}and will add JS that activates the visible class on scroll.
🪄 3.10. Practical exercise: style personalization
Task:
- Open the site created in Module 2.
- Choose a style (for example: "minimalist", "energetic", "premium").
- Ask ChatGPT for colors and fonts for this style.
- Then enter the prompt in Replit Agent:
"Style my site in a premium style: black background, gold accents, white text. Use 'Playfair Display' font. Add shadows under cards and smooth animations on hover."
- Click Run → check the result.
📱 3.11. Adapting design for mobile devices
To make the design look good on smartphones:
"Make the site responsive: menu vertical, sections with spacing, text larger. Add distance between elements on mobile version."
Replit will automatically add something similar in CSS:
@media (max-width: 768px) {
nav ul {
flex-direction: column;
}
section {
padding: 60px 10px;
}
h1 {
font-size: 1.8rem;
}
}🧭 3.12. Checking the result
- Click Run.
- Open the site in a new tab.
- Open developer tools (F12 → "Toggle Device Toolbar") and check how the site looks on iPhone/Android.
- If something doesn't fit — clarify:
"Make the text larger on mobile and add more breathing room between blocks."
🧩 3.13. Typical styling problems
| Problem | How to fix |
|---|---|
| Colors too bright | "Make the palette calmer, in pastel tones" |
| Text merges with background | "Change colors for better contrast" |
| Lack of smoothness | "Add transition effects on hover" |
| Font is not readable | "Replace font with a simpler one, e.g., Roboto" |
🧪 3.14. Homework
- Choose a style for your site (minimalist, tech, eco, art, business).
- Use ChatGPT to generate a color palette and fonts.
- Ask Replit Agent:
"Update my site design in [chosen style] style. Use these colors: […]. Use font […]. Add smooth section appearance animation."
- Publish the site and test it on a phone.
🧠 3.15. Summary of Module 3
| Element | Result |
|---|---|
| Design | Site received colors, fonts, styles |
| Animation | Smooth effects and movements have appeared |
| Responsiveness | The site looks good on any device |
| AI-communication | Learned to describe design in words |
| Result | Fully functional visual version of the site |