Create Your First HTML Page

HTML Living Standard

Create an HTML file with a heading and a paragraph, then open it in your browser.

On this page

Save and open index.html

  1. Open a text editor such as VS Code and create a new file.
  2. Enter the example below and save the file as index.html.
  3. Double-click the file to open it in your browser.
<h1>Library Hours</h1>
<p>The library opens at 9 a.m.</p>

What to expect You will see Library Hours as the heading and the opening time below it.

If the result differs If the file opens in a text editor, check that its name ends in .html. Some editors add .txt when saving.

Edit, save, and reload

Change the opening time to 10 a.m. Save in your editor, then reload the browser tab with Ctrl+R on Windows or Linux or Command+R on Mac.

<h1>Library Hours</h1>
<p>The library opens at 10 a.m.</p>

What to expect The heading stays the same and the paragraph shows 10 a.m.

Official references