1. Technology

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> 

©2014 About.com. All rights reserved.