Create a Website
HTML
Dreamweaver
CSS Tutorial
JavaScript
FREE Hosting!
With every domain name
you register at DotEasy
you get FREE (no-ad)
one year hosting.
PLUS you get:
  • FREE Website Builder
  • FREE Blog
  • FREE Forum
  • FREE Photo Album
  • FREE Email Accounts
Get your FREE hosting today!
Home > HTML Help & Tutorial
$0 Web Hosting

You can include a comment in an HTML file. A comment will not be displayed on web page and will help you remember why you coded something in a particular way.

Comment Tags

The comment tag is used to insert a comment in the source code. Make sure to insert two hyphens after the exclamation mark and two hyphens before the great-than sign. Let's say the comment was "This is my comment", you would type:
<!-- This is my comment. -->

Note: You won't see the comment on the web page. It's ignored by browsers. The comment is only visible in the source code.

Enjoy this tutorial?

1. Link to this page(copy/paste into your own website or blog):
2. Add this page to your favorite social bookmarks sites:
3. Add this page as your favorites. (Press Ctrl+D)