1. Computing

Displaying HTML vs. What Displays in a Web Browser

By

1 of 2

There is a Lot More to HTML than What Displays in a Web Browser Window

One of the most difficult things for a new Web designer is to understand the difference between the HTML codes and what is displayed on the Web browser. When you write a Word document or even a Web page in a WYSIWYG editor, all you see is the text (and images) that will display. You may be surprised to find out that there can be as much as twice as much text in the HTML as displays on the screen.

Type the following into a text editor, and save it as "sample.html".

 <html>
 <head> 
 <title>This is my Web page</title>
 </head>
 <body>
 <h1>My First Web Page</h1>
 <p>
 This is my first Web page, and it's got a 
 lot of stuff to think about. 
 </p>
 <p>
 Brought to you by:<br />
 <address>
 ME!
 </address>
 </p>
 </body>
 </html> 
  1. About.com
  2. Computing
  3. Web Design / HTML
  4. HTML and XHTML
  5. Beginning HTML Tutorials
  6. Displaying HTML - How the Displaying HTML is Different from the Actual HTML

©2014 About.com. All rights reserved.