1. Computing & Technology

Discuss in my forum

Displaying HTML vs. What Displays in a Web Browser

By , About.com Guide

2 of 2

Test Your HTML in a Web Browser
Displaying HTML vs. What Displays in a Web Browser
  1. Open your browser and click on the File menu.
  2. Choose Open.
  3. Browse to the "sample.html" file on your hard drive and click OK.

When you compare the two files, there is a lot less text on the screen in the browser than there is in your text editor. All of that "extra" text is the HTML.

As you can see, the browser displays only the text, and not the HTML codes. Plus, it does not display the text inside the <head> tags.

©2012 About.com. All rights reserved.

A part of The New York Times Company.