How to View HTML File in Chrome | Step by Step Guide

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

  1. Create a new empty document.
  2. Open and paste the given HTML basic structure.
    <!DOCTYPE html>
    <html>
    <head>
      
       <title>HTML DEMO</title>
    </head>
    <body>
    <div>HELLO EVERYONE</div>
    </body>
    </html>
  3. Save as with .html extension. Ex: index.html
  4. Your HTML document will be displayed as shown in the image below.how to view html file in chrome

Step-by-step guide to view HTML file in Chrome

  1. Open your HTML document in chrome.
  2. Right-click on it in your browser and then select “open source” option.
  3. Your HTML code will be displayed as shown in the image below.how to view html file in chrome

Leave a Reply