• Post category:HTML

How to Create a HTML Document | Step by Step Guide

How to Create a HTML Document

In this article, we will see how to create an HTML document.

Step by Step guide to create an HTML file

  1. Right-click “new > text document”.
  2. Open a text document and write HTML basic code like the code below.
    <!DOCTYPE html>
    <html>
     <head>
       <title>HTML DEMO</title>
     </head>
     <body>
       <h1>NEW HTML DOCUMENT</h1>
     </body>
    </html>
  3. Then save it as your file with the .html extension. Ex: index.html.
  4. To run your program, select your HTML file and right-click open with chrome.
  5. Your code will display like the below imagehow to create a html document

Leave a Reply