Skip to content

Your first HTML page

Create a folder anywhere on your PC, then create a file named:

index.html

Paste this:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>My First Page</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>This is my first web page.</p>
</body>
</html>```
## Open it
Double-click `index.html` to open it in your browser.
## Exercise
Change the `<h1>` text and refresh the page.