Chapter 8: Clean Code, Comments, and Escape Codes

Clean Code...

Clean code means that your HTML coding follows all specifications. Here are a few ways to keep your code clean:

The Comment Tag...

If you are writing an HTML document, sometimes you may want to put little reminders to yourself with your code so that you will be able to interpret your coding better. A comment will not appear in a web browser when the page is displayed... it is only visible when the source code is viewed. You start commented text with <!-- and end it with -->.

Your own HTML page...

Add the following to your HTML page ("Home.htm"): (the blue text is what to add)

<head><title>My Home Page</title></head>
<!-- The body starts here - and a background image is loaded -->
<body background="bgnd.gif">

<!-- This is a heading, in blue -->
<center><font color="Blue"><h1>YOURNAME's Home Page</h1></font></center>
<!-- This is a horizontal line -->
<!-- My name and the two images are all part of a link - which is a "mailto" link -->
This is the home page of <a href="mailto:YOUR EMAIL ADDRESS"><img src="bullet.gif" border=0><b>YOURNAME</b>.<img src="bullet.gif" border=0></a>
<p>Type something about yourself here. Describe briefly who you are and what you do for a living. Remember to use bold and italic text, for emphasis.</p>
<h2>My favourite Web Sites</h2>

<!-- This list is an unordered list -->
<li> <a href="">Xenon Web Design</a> </li>
<li> <a href="">Microsoft</a> </li>
<li> <a href="">Sybase</a> </li>
<li> <a href="">Sybase South Africa</a> </li>


Save the text file as "Home.htm".
Go To Chapter 9

Free Credit Reports
Free DMV Links
Free Real Estate Forms
Free Secret Info Page
Free Crime Protection
Free Legal Forms
Free Classified Links
Free Auction Site Links
Free Business Forms
Free Government Programs
Free Web Business Ideas
Free Real Estate Reports
Free HTML Tutorial
Free Software Sources
Free Business Reports
Free Real Estate Glossary
Free Web Art
Car Tips