WebCom Home Page
WebCom
WEBCOM HTML GUIDE

WEBCOM'S OWN GUIDE TO HTML
WebCom
Resources


HTML Guide
   · Overview
   · Tags
   · Images
   · Forms

Resources
   · Web Primers
   · HTML Guides
   · HTML Validators
   · Publishing Guide
   · Publicize Your Site
   · Mac Web Tools
   · Windows Web Tools
   · Icons and Graphics
   · Other Resources

Control Panel Login
Customer Support

Contact Us

About WebCom

 
Miscellaneous Tags

This page is part of the WebCom Web Publishing Guide. It explains the syntax for inserting comments into an HTML document and to how insert horizontal rules.


Inserting Comments

Comments do not show up when the document is displayed.

<!-- This is a comment. Don't forget the ! before the two dashes ("--"), or the comment will be displayed. -->

Notes:

  • White space is allowed between the closing -- and >, but not between the opening <! and --.
  • Brackets "<>" should not be embedded within a comment. This will confuse many browsers.

Horizontal Rule


<HR>

The horizontal rule tag creates a line accross the page. It is usually used to separate sections of a document (such as the main portion from the "signature", as done below). The appearance of the line is dependent on the browser used to display the document. Sometimes images are substituted in place of the <HR> tag.


Hotlink to E_mail Address

nobody@webcom.com

<A HREF="mailto:nobody@webcom.com">nobody@webcom.com</A>

This URL will cause an e-mail form to be displayed by Web browsers that support the mailto URL. A user can then send a message to the address shown. The only drawback to using this is that NCSA Mosaic does not support it. Using the e-mail address as the label is standard practice, since most people selecting it will know that a e-mail form will appear.


Redirecting to another page

You can have one page cause another page to be automatically be loaded after a specified amount of time with the following META tag:

<META HTTP-EQUIV="refresh" content="#;URL=$url">

Where "#" is the amount of seconds to wait before loading the next page, and "$url" is the address of the next page to load.

Example:

<META HTTP-EQUIV="refresh" content="5;URL=http://webcom.com/html/">

Forcing browsers to reload page instead of retrieving from cache

Including the following tag in the <HEAD> section of your document usually prevents the browser from retrieving the page from cache, even when the page has been recently accessed by that client.

<meta http-equiv="pragma" content="no-cache">



WebCom Home
Contact us by email:info@webcom.com
phone: 1-888-8WEBCOM (1-888-893-2266)
Copyright © 1994 - 2001 Web Communications.   A Member of the Verio Group.