Navbar

Saturday 29 July 2017

CSS Comment





In this current post we will learn about how to write comment in CSS.You can watch video at the end easily learn .


  Note : CSS comment are used in the comment in html document.Which contech are inside comment section that document will be ignore by the browser interpreter.

You can add comment in the html document in following way:
<!--Here that content should be placed which are writing for own understanding -->

Example :
       Lets take a look in below given script.
         <html>
                <head></head>
                <body>
                      <p>Hello World!!</p>
                      <!-- This message will be invisible on browser -->
                </body>
        </html>

If you save and run the above script then you will see the only Hello World! will be visible on the browser .
This message will be invisible on browser will be invisible because here css comment are  used . So the browser comment these line.

For look into detail example please watch below video : 

Visit our YouTube Channel for more related video which will help you to learn easily and fastly.
Here are the rule or syntax for write comment in CSS :
For comment in CSS if we write anything between /* */ this,all text or anything will be ignored in CSS.
Suppose you want to describe document only for our understanding purpose and we want that it should be ignore in browser or invisible then we write as follows: /*This is comment demo session and written text will be invisible to entire webpage*/...
So,entire written text /**/ within will be ignored and not going to display over the webpage.


No comments:

Post a Comment

Share your views after read this post