Showing posts with label how to write comments in html. Show all posts
Showing posts with label how to write comments in html. Show all posts

Monday, October 30, 2023

how to add comments tag in html


 How To Add Comment In Html

  

html comments tag

Comment Tag

 Importance of HTML  Comment tag 


       1]   comment tag are some extra information  or code written in your code give extra explanation about the code and not visible to the user. 

       2]   comment tag are not displayed in the any browsers. comment tag use to the                                   programmer.

       3]    programmer you can use comments  tag to explain your code, help you code is edit                and change  the source code .comment of any code easy to understand in the                      programmer.

        4]    comment tag use to notes to remind yourself the build  process. you could                               explain the intended functionality of a section of code for another  Multiple                          developer  or your future self ensures quick and efficient understanding  of                              complex codes.

Syntax:-

 
<!-- 

   tag before the code and a after the code

 -->
  

 

Type of  HTML comments tag :-


1]  single line comments in HTML
2]  Multi-Line Comments in HTML



1]  single line comments in HTML :-


  HTML code also comments single lines at a time. in single line comment can use 
  one line description /information about the code .


Syntax

     
       <!--  There is some text  related to your program  -->

      
<h1>heading name program</h1>  
    <!-- <h2> topic name Webdesigningtheory.blogspot.com</h2>-->
               


2]  Multi-Line Comments in HTML

           The HTML code we can also comments multiple lines at a time code write in the program. multiline comment use any description multiple line code to debug etc.
   
       Syntax :- 

          <!--
              your code is comment
              write information
              in your project code
             Webdesigningtheory.blogspot.com
                -->

   
 <h2>command to html</h2>  
    <!-- <h2>extra  Information to related topic
project name
information
home page, contact use,create
website Webdesigningtheory.blogspot.com -->
               



visit the link