How to View HTML File in Chrome
In this article, we will see how to view the HTML file in chrome step by step.
Steps to create HTML file
- Create a new empty document.
- Open and paste the given HTML basic structure.
<!DOCTYPE html> <html> <head> <title>HTML DEMO</title> </head> <body> <div>HELLO EVERYONE</div> </body> </html>
- Save as with .html extension. Ex: index.html
- Your HTML document will be displayed as shown in the image below.
Step-by-step guide to view HTML file in Chrome
- Open your HTML document in chrome.
- Right-click on it in your browser and then select “open source” option.
- Your HTML code will be displayed as shown in the image below.