CSS

How to write comments in CSS

Comments in CSS are generally used to explain the purpose of style rule declarations. This will help you and others understand what you were trying to do with the style rules when editing the style sheets. Comments are not displayed by browsers.

Comment in CSS starts with /* and ends with */.
 

Example :
/* This is a single line CSS comment */

/* This is an example of
     CSS Multiline Comment */
h1 {
    color: #000;
}
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *