How to Insert a Comment Into the HTML of a Web Page

By eHow Internet Editor

Rate: (5 Ratings)

Use HTML comments to make design notes, specify where sections begin or note special codes such as JavaScript. You'll need a basic knowledge of HTML (see "How to Learn HTML" under the Related eHows) and an existing Web page.

Instructions

Difficulty: Moderately Easy

Things You’ll Need:

  • Modems
  • Internet Access
  • Microsoft Notepad
  • Web Browsers

Step1
Start a text editing program, such as WordPad or EditPad. Locate the Web page and open it.
Step2
Position the cursor where the comment will appear, after the tag.
Step3
Begin the tag by typing the following:
Step6
Save the page when finished and preview it in a browser.

Tips & Warnings

  • Comments must be located in the body of the Web page, after the tag. Otherwise, the page may not display properly.
  • Comments are invisible to Web page viewers. If you see the comments when previewing the page, check for both opening and closing tags and two dashes with spaces separating the dashes from the comment text.
  • Comments are still visible in the source code of the page, so do not add information you don't want people to see, such as passwords or sensitive material.

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article:  How to Insert a Comment Into the HTML of a Web Page

eHow Internet Editor

eHow Internet Editor

Category: Internet

Articles: See my other articles

Related Ads

Internet

Veesites
Meet Virginia DeBolt eHow’s Internet Expert.