HTML Comments

Used to insert notes or remarks in an HTML code that are ignored by the browser when rendering the web page.
It dosent change or alter the result of the code.
The Synatax is: <!-- -->

Example

<!DOCTYPE html>
<html>
<head>
  <title>HTML Comments Example</title>
</head>
<body>
<!-- Write Your Comments here -->
  <h1>Welcome to My Website</h1>
<!-- Write Your Comments here -->
</body>
</html>

You can add what even you want in comments like codes, text etc.

Example

<!DOCTYPE html>
<html>
<head>
  <title>HTML Comments Example</title>
</head>
<body>
    <!-- Comment -->
    <h1> Write your <!-- Comments --> Any where </h1>
    <p>Place a code in comments <!-- <i>italic</i>  --></p>
    <p>It does not effect the result of this code</p>
</body>
</html>

Quick Recap - Topics Covered

HTML Comments

Practice With Examples in Compilers

The Concepts and codes you leart practice in Compilers till you are confident of doing on your own. A Various methods of examples, concepts, codes availble in our websites. Don't know where to start Down some code examples are given for this page topic use the code and compile or Try on own Now


Example js

Example 1 Example 2 Example 3 Example 4 Example 5


Quiz


FEEDBACK