Topic 3: <head>

<!--comment out-->

 

Often the author will have comments that begin with a tag <!-- and end with a --> tag. Anything in between <!-- and --> will not appear on a web page but is "invisible" when browsers display html. This is where web designers can write comments for curious professionals or for themselves. People speak of this as "commenting out" material.This "invisibility" also makes the <!-- comment area --> a place where designers can give java script instructions. That is beyond the scope of this class, however, so for now ignore anything in that area that refers to a "script".

 

Web Version

Yale C/AIM Style Guide

Of course, the web page for the Yale Style Guide for Web Design is going to be a model. "View>Page Source" at this site at http://info.med.yale.edu/caim/manual/contents.html and see how the authors have used the <!--comment area--> inside the <head>.

See how information about the authors and copyright is contained within the <!-- comment --> tags. Dave Raggett explains on page 238 of Ragget on HTML 4 that some of this material can also be included in <meta> tags, but there is no standard for <meta> names. Moreover, the information is actually more readable as it is displayed in the <!--comment area-->.

See also how the authors have used the <!--comment area--> combined with = = = and text. They use these tags to describe areas of code and what the codes are doing. If you get into the habit of writing such comments, it will be easier to go back and edit or revise your page or find the place where you used a code you really liked.

If you are working with a team, it is very important to include comment tags so others know why you use the code you choose. If you are working alone, it is still useful so that when you go back to revise your page you can see why you did code as you did.

Graphix 6

Some authors also do very creative work inside these <!-- comment tags--> for a very private audience. See what Graphix 6 does inside the comment tag on the linked page at http://shinzo.com/6+/fOcuS/index.shtml. At first glance this looks like just some peculiar java script, with its references to syntax and the like. Some of the comments do refer to script, and "border=0" is common enough html language. But as you will learn in a few weeks, there is no html tag <imagine>, nor one for </ego>. So what is this artist doing? He is demonstrating you can write poetry in html for those who know to look and read!

 

Continue to <meta> tags>>

Other comment notes for this unit:
head | meta tags | keywords | titles

Copyright by dwang, 1999, 2000. All rights reserved.

Valid HTML!