Welcome Guest! (App Version 3.1)

websitnero logo name

HTML Comments

Overview

  • Comments do not play active role on HTML page.
  • Whatever is written inside comment tags is never shown on end-user screen.
  • Comments only help out in understanding what a piece of code does on web page.

How to add comments in HTML

Comments are additional text added to the html pages to understand the coding part, rather than playing any active role on the view of the web page.

Basically, comments are added so that while development of a project if people change, and a new person comes in place of some old programmer, then by reading comments he may be able to understand what a certain chunk of code is doing or what is the functionality of a particular set of code snippet.

<!-- This is some comment! -->

Example

<body>
  This line will be shown.
  <!-- This line will not be shown. -->
  Again, This line will be shown.
</body>
WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.