LESSON 6: CLEAN CODE, COMMENTS, AND ESCAPE CODESClean CodeClean code means that your HTML coding follows all specifications. Here are a few ways to keep your code clean:
The Comment TagIf 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 FIFTH HTML PAGE !!!Add the following to your HTML page ("index.htm"):<html> <head><title>My Home Page</title></head> <center><font color="Blue"><h1>This is a Heading 1</h1></font></center> <hr> This is the home page of <a href="mailto:YOUR EMAIL ADDRESS"><img src="myImage.png" border=0><b>YOURNAME</b>.<img src="myImage.png" 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>> <hr> <h2>My favourite Web Sites</h2> <br> <!-- This list is an unordered list --> <ul> <li> <a href="http://www.cuatdtop.blogspot.com">The Reformers : Web Design</a> </li> <li> <a href="http://www.microsoft.com">Microsoft</a> </li> <li> <a href="http://www.xencon.com">Xenon Web Design</a> </li> <li> <a href="http://www.hp.com">Hp</a> </li> </ul> </body> </html> Save the text file as "index.htm". |
Tuesday, 27 November 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment