Help Search Campus Map Directories Webmail Home Alumnae Academics Admission Athletics Student Life Offices & Services Library & Technology News & Events About the College Navigation Bar
MHC Home Using the Document Interface

The .COMMENT and .ENDCOMMENT Commands

Syntax:

<!--.COMMENT-->
...whatever...
<!--.ENDCOMMENT-->

This command can be used to create a comment to the reader of the document which will appear as regular HTML within a WYSIWYG editor like PageMill or Netscape Composer, but that, when viewed from the Web server, will be visible only in the source.

For example, this comment is included as part of most of the top-level pages on the MHC system:

<!--.comment-->
<center><h2>
TO GET NAVIGATION BARS ON YOUR PAGES, DO NOT COPY THIS HEADER!<BR>
INSTEAD, GO TO http://www.mtholyoke.edu/help/creating-pages/DI AND READ<BR>
ABOUT THE DOCUMENT INTERFACE</h2></center>
<!--.endcomment-->

When viewed by the end-user, from a Web browser, this code will be within an <!--HTML comment-->. However, if the source file is viewed from a Web page editor, this will instead scream:

TO GET NAVIGATION BARS ON YOUR PAGES, DO NOT COPY THIS HEADER!
INSTEAD, GO TO http://www.mtholyoke.edu/help/creating-pages/DI AND READ
ABOUT THE DOCUMENT INTERFACE

----------------------------------------

Home | Directories | Web Email | Calendar | Campus Map | Search | Help

About the College | Admission | Academics | Student Life | Athletics
Offices & Services | Giving | News & Events | Alumnae | Library & Technology

Copyright © 1999 Mount Holyoke College. This page created by the OIS Operations Group and maintained by Webmaster. Last modified on March 23, 1999.