Build your first HTML page using a text editor and a web browser. You do not need a compiler or a web hosting account for this first exercise.
What you need
- A current browser such as Firefox, Chrome or Edge
- A code editor such as Visual Studio Code
- A folder named html-practice
Set up your environment
- Install an editor from its official website and create
html-practice. Open that folder in the editor. - Create
index.html. Make sure your system has not silently added.txtto the filename. - Paste the example below and save it. Open the file with your browser.
- After changing the heading, save the file and refresh the browser to see your edit. Use Developer Tools to inspect the page.
Your first check
Save as index.html
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>My first page</title></head>
<body><h1>Hello from w1coding.com</h1></body>
</html>Run or verify
Open index.html in your browser.Expected result: A heading reading Hello from w1coding.com appears.
Common setup problems
- If you see the HTML source as text, confirm the extension is
.html. - For lessons involving requests, modules or server-side code, use a local HTTP server rather than a file URL.
Official documentation
Guide reviewed 17 November 2026. Check the linked vendor documentation for current supported versions and operating systems.