Website Tutorials
For Beginners
HTML Help & Tutorials
Dreamweaver Tutorials
Home > HTML Tutorial
HTML Tutorials - Comments
Getting Started    CSS    Text    Linking    Graphics    Fill-out Forms    Frames    Comments

What is HTML Comment?

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. -->

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


Getting Started    CSS    Text    Linking    Graphics    Fill-out Forms    Frames    Comments