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
- Right-click “new > text document”.
- 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>
- Then save it as your file with the .html extension. Ex: index.html.
- To run your program, select your HTML file and right-click open with chrome.
- Your code will display like the below image