Plan the page
Choose the purpose, sections, colours, wording and call-to-action before generating the code.
Learn how to plan, generate, save, open, test and improve a simple website using ChatGPT and Visual Studio Code. No previous coding experience is required.
By the end of this short course, you will have a real working webpage saved on your computer and opening in your browser.
Choose the purpose, sections, colours, wording and call-to-action before generating the code.
Use a clear prompt that tells ChatGPT exactly what kind of website you want.
Save the page as an HTML file and open it using Live Server in Visual Studio Code.
Follow these steps in order. Each step moves you closer to a finished website.
A one-page website works best when it has one clear purpose. It could introduce a small business, promote a booklet, display photography, explain a service or provide contact details.
A simple first website might contain:
The more useful information you give ChatGPT, the more suitable the finished page will be.
Every time you save a change, Live Server normally refreshes the webpage for you.
Ask ChatGPT for small, clear improvements rather than rebuilding everything.
This small example shows the basic structure of a complete HTML page.
<!DOCTYPE html>
<html lang="en-NZ">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Website</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
background: #07111f;
color: white;
text-align: center;
}
header {
padding: 80px 20px;
}
h1 {
color: #f4d88b;
font-size: 3rem;
}
.button {
display: inline-block;
margin-top: 20px;
padding: 12px 20px;
background: #d6aa4a;
color: #07111f;
text-decoration: none;
border-radius: 8px;
font-weight: bold;
}
</style>
</head>
<body>
<header>
<h1>Welcome to My First Website</h1>
<p>I created this page with ChatGPT.</p>
<a class="button" href="mailto:[email protected]">Contact Me</a>
</header>
</body>
</html>
Use this checklist to make sure your page is ready.
Your goal is to finish one working webpage rather than trying to create a large website all at once.
Create a title, short introduction, About paragraph and contact message.
Select two main colours, one highlight colour and a simple visual style.
Use the prompt from Lesson 3 and replace the example details with your own.
Open the page with Live Server and ask ChatGPT to repair or improve one item at a time.
Open each question after deciding on your answer.
Answer: index.html
Answer: It opens your local website in a browser and refreshes it when you save changes.
Answer: Clear instructions help ChatGPT create a page that better matches your intended design and purpose.
Answer: Save a backup copy of the current working file.
Answer: Yes. A well-designed single page can provide information, display work, promote a service and collect enquiries.
You now understand how to plan a page, prompt ChatGPT, save an HTML file, open it with Live Server and improve it through small controlled changes.