Hello, world


View the source of this page



How to create your first html file

  1. Create a file named hello.htm. Make sure the extension of that file is .htm.
  2. Open hello.htm with a basic text editor, such as Notepad (Windows) or VS Code (my favorite editor).
  3. Paste the following code into the editor and then save the file:
  4. <!DOCTYPE html>
    <html>
     <body>
      <p>Hello, world!</p>
     </body>
    </html>
    
  5. Open hello.htm with the browser of your choice.


Which extension to use? htm vs. html