Set up your practice project
1 · Your first web page
- Create the three named files.
- Render the heading and paragraph locally.
Words you’ll use
- Editor
- An application for changing plain-text source files.
- Browser
- An application that renders web pages.
- Extension
- The ending of a filename, such as .html.
You will build a fictional Bright Desk service page and a small task list. Start with a computer, a plain-text editor such as VS Code and a browser. Phone reading is useful, but the coding exercises are easier with a keyboard and access to project files.
Create a folder named bright-desk. Inside it, create index.html, styles.css and app.js. HTML supplies the content structure, CSS its presentation and JavaScript interactive behaviour. Save files as plain text, not a word-processing document.
Opening index.html directly in your browser is sufficient for the early HTML and CSS exercises. Later fetch and React lessons need a development server. The course distinguishes these environments so a file-opening limitation is not mistaken for a code error.
Keep a practice copy and use fictional content. A local file is visible to you, but is not a published website. After saving a change, refresh the browser and compare what you see with the expected result.
Folder: bright-desk index.html styles.css app.js Put this in index.html for the first check: <h1>Bright Desk</h1> <p>Practical support for small businesses.</p>
A worked example, step by step.
- 1Create the bright-desk folder.
Keep related files together.
- 2Create index.html as a plain-text file.
The extension tells the browser how to treat it.
- 3Paste the two HTML lines and save.
Saving updates the disk copy.
- 4Open index.html in a browser.
You should see a heading and sentence.
- 5Change small businesses to local teams and refresh.
Confirm that your edit appears.
Common mistakes to avoid
- Skipping the expected-result check after editing.
- Copying code into a different file or environment without checking the instructions.
Put this skill to use.
- Create the three named files.
- Render the heading and paragraph locally.
- Change the paragraph and explain why refreshing matters.
Check your work
- I attempted the practical task.
- I compared the actual result with the expected result.
- I can explain the change and any remaining problem.
Compare with a worked solution
Try the task first, then use this example to review your work.
The page shows Bright Desk as a heading and the updated sentence beneath it. If source text appears, check the file extension; if old text remains, save the correct file and refresh the matching browser tab.
Complete this task in your own tools. Keep the result in your project folder.
Which file contains the page structure?
Does opening a local file publish it?
What should you do after editing?
Answer all 3 questions before checking your answers.
Try the practical task and tick the box above before completing this lesson.
Sign in with ChatGPT to save progress across devices.