× Introduction HTML Editors Web Components Headings Paragraph Attributes Entities Images Comments Formatting Links File Paths Book Marks Image Links Unordered Lists Ordered Lists Tables Forms Other Form Elements Semantic tags Media Div and Span Examples Projects eBooks









HTML Comments

In this tutorial you will learn how to add comments to your HTML source code.

Creating comments

HTML comments can be used to store remarks or statements to yourself or other developers about a specific point in code. Web browsers ignore comments and do not display them.
Comments are indicated by the comment tag <!-- and -->.

Example:   Try It

 <!-- I'm an HTML comment! -->

They can be incorporated inline within other content:

Example:   Try It

<h1>This part will be displayed <!-- while this will not be displayed -->.</h1>

They can also span multiple lines to provide more information:

Example:   Try It

<!-- This is a multiline HTML comment.
Whatever is in here will not be rendered by the browser.
You can "comment out" entire sections of HTML code.
-->

Practice exercise:

1.Add html comments to the following page to comment out Graphic design section. Also add author name and modified date in the comments section. View


Sri Ramanuja e-Patashala


New Media and Web Design

Sri Ramanuja Media Design will bring your company’s Web presence to the next level. We offer a comprehensive range of services .

Meeting Your Business Needs

Our expert designers are creative and eager to work with you.Take advantage of the power of Web!

Graphic design

When it comes to Graphic Design there are so many directions you can go. We’ve created our fair share of business logos and brand guidelines,
but one of our favorite styles continues to be bringing history to life with modern illustrations.

        Learning is not  
             the product of teaching. 
               Learning is the product of 
                          the activity of learners.