12/15/2016

css-comment

Comment

Some time comment play a vital role,using comment we can make our code better readability and better understandable. 

When you working in a big project,maintain project by a team,in future possibility to change on code then comment must uses in your code.


 Browser ignore the comment block.what ever you write on comment block browser not read.

Type:

comments are two type
  1. Single line comment.
  2. Multi line comment.
<!DOCTYPE html>
<html>
<head>
    <title></title>
<style type="text/css">
    * {
        /* this is comment block --(single line comment)*/
        /* Auther ttn- 
            date-14/12/2016 
            --(multi line comment)*/
        border: 1px solid;
        color: #892121;
        padding-left: 3px;
    }
</style>
</head>
<body>
    <h1 style="color:red;font-size:50px;">comment on css Example</h1>
</body>
</html>

No comments:

Post a Comment